Skip to content

A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.

SECURITY.md and CONTRIBUTING.md

gelenmedya869fa4731769
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
new file mode 100644
index 00000000..b1b79cda
--- /dev/null
+++ b/CONTRIBUTING.md
@@ -0,0 +1,57 @@
+# Contributing to rustyfiles
+
+Thanks for wanting to help! rustyfiles has had pull requests from more than thirty people in its
+first month; here is what makes yours easy to take.
+
+## Where to start
+
+- **Bugs and requests:** [open an issue](https://github.com/gelenmedya/rustyfiles/issues/new/choose).
+ Ideas and questions go to [Discussions](https://github.com/gelenmedya/rustyfiles/discussions).
+- **Security problems:** never in public: see [SECURITY.md](SECURITY.md).
+- **Something to work on:** any open issue is fair game. If it is big, say in the issue that you
+ are on it, so two people don't build the same thing.
+
+## Building
+
+You need [Rust](https://rustup.rs) (stable) and, on Windows, the Visual Studio Build Tools with the
+"Desktop development with C++" workload.
+
+```
+cargo run --release -p rf-app --bin rustyfiles # run it
+cargo test -p rf-app -p rf-win -p rf-core # the main test suites
+```
+
+Try your change in a copy that does not touch your own settings:
+
+```
+$env:RUSTYFILES_CONFIG_DIR = "$env:TEMP\rf-test"; $env:RUSTYFILES_MULTI_INSTANCE = "1"
+cargo run -p rf-app --bin rustyfiles -- C:\some\folder
+```
+
+The macOS app (`macos/`, `crates/rf-mac`) is built on a Mac only; it is not part of the Windows
+workspace.
+
+## Pull requests
+
+- **One change per pull request.** Small and focused PRs are reviewed and merged fastest; a PR that
+ does three things usually waits for the slowest of them.
+- **Say what was wrong and how you tried the fix**, with a picture for anything visible.
+- **New settings are off by default** unless the change fixes something, and each has a switch of its
+ own in Settings.
+- **Commit titles:** short and plain English, under 72 characters.
+- **Code comments** explain *why*, in plain English, the way the code around them does. The project
+ does not run `rustfmt` on the whole tree: please don't reformat files you didn't change.
+- **Tests:** add one for logic that can break (parsing, sorting, file operations). The suites must
+ pass.
+
+## Texts in the interface
+
+The interface is written in Turkish and shown in 49 languages. A new text goes through
+`t!("...")` with its Turkish wording, plus its English in `crates/rf-app/src/i18n_en.rs`; if you
+don't know Turkish, write the English and say so in the PR: the maintainer words the Turkish and
+runs the translations for the other languages (`scripts/i18n_*.py`).
+
+## License
+
+rustyfiles is MIT licensed. By sending a pull request you agree that your contribution is released
+under the same license.
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 00000000..64e73b5d
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,40 @@
+# Security policy
+
+## Supported versions
+
+Only the latest release gets security fixes. rustyfiles updates itself (Settings › About), so the
+latest version is one click or one restart away; WinGet and Scoop follow within a day.
+
+| Version | Supported |
+|---|---|
+| Latest release | Yes |
+| Anything older | No: update first |
+
+## Reporting a vulnerability
+
+Please report security problems **privately**, not in a public issue:
+
+- **GitHub:** [Report a vulnerability](https://github.com/gelenmedya/rustyfiles/security/advisories/new)
+ (the repository's private security advisories). This is the preferred way.
+
+Tell us what an attacker can do, on which version, and how to reproduce it (a proof of concept
+helps). A file manager touches many things that come from elsewhere: archives, folders from other
+users or the network, Git repositories, settings imports, other apps' Open / Save dialogs, Ferry
+connections on the local network. Reports about any of them are welcome.
+
+## What happens next
+
+- We confirm the report, usually within a day.
+- We fix it on `main` and ship it in the next release, which for a real vulnerability is soon:
+ past reports were fixed within one to two days.
+- The advisory is published once the fixed release is out, crediting you unless you prefer
+ otherwise.
+
+## Scope
+
+In scope: the rustyfiles app for Windows and macOS, its Open / Save dialog component, the Dock and
+desktop, DirectLook, Ferry, the archive and copy engines, the updater, and the HyperDownload
+add-on. Out of scope: problems that need an attacker who already runs code as your user or as an
+administrator, and bugs in Windows or macOS themselves (report those to Microsoft or Apple).
+
+Thanks to everyone who has reported problems privately so far, among them Ruchir317.