on 376c19e help sign in
helix/docs/CONTRIBUTING.md
55 lines 2.8 kB history raw
1# Contributing
3Contributors are very welcome! **No contribution is too small and all contributions are valued.**
5Some suggestions to get started:
7- You can look at the [good first issue][good-first-issue] label on the issue tracker.
8- Help with packaging on various distributions needed!
9- To use print debugging to the [Helix log file][log-file], you must:
10 * Print using `log::info!`, `warn!`, or `error!`. (`log::info!("helix!")`)
11 * Pass the appropriate verbosity level option for the desired log level. (`hx -v <file>` for info, more `v`s for higher verbosity)
12 * Want to display the logs in a separate file instead of using the `:log-open` command in your compiled Helix editor? Start your debug version with `cargo run -- --log foo.log` and in a new terminal use `tail -f foo.log`
13- Instead of running a release version of Helix, while developing you may want to run in debug mode with `cargo run` which is way faster to compile
14- Looking for even faster compile times? Give a try to [mold](https://github.com/rui314/mold)
15- If your preferred language is missing, integrating a tree-sitter grammar for
16 it and defining syntax highlight queries for it is straight forward and
17 doesn't require much knowledge of the internals.
19We provide an [architecture.md][architecture.md] that should give you
20a good overview of the internals.
22# Auto generated documentation
24Some parts of [the book][docs] are autogenerated from the code itself,
25like the list of `:commands` and supported languages. To generate these
26files, run
28```shell
29cargo xtask docgen
30```
32inside the project. We use [xtask][xtask] as an ad-hoc task runner and
33thus do not require any dependencies other than `cargo` (You don't have
34to `cargo install` anything either).
36# Integration tests
38Integration tests for helix-term can be run with `cargo integration-test`. Code
39contributors are strongly encouraged to write integration tests for their code.
40Existing tests can be used as examples. Helpers can be found in
41[helpers.rs][helpers.rs]. The log level can be set with the `HELIX_LOG_LEVEL`
42environment variable, e.g. `HELIX_LOG_LEVEL=debug cargo integration-test`.
44## Minimum Stable Rust Version (MSRV) Policy
46Helix follows the MSRV of Firefox.
47The current MSRV and future changes to the MSRV are listed in the [Firefox documentation].
49[Firefox documentation]: https://firefox-source-docs.mozilla.org/writing-rust-code/update-policy.html
50[good-first-issue]: https://github.com/helix-editor/helix/labels/E-easy
51[log-file]: https://github.com/helix-editor/helix/wiki/FAQ#access-the-log-file
52[architecture.md]: ./architecture.md
53[docs]: https://docs.helix-editor.com/
54[xtask]: https://github.com/matklad/cargo-xtask
55[helpers.rs]: ../helix-term/tests/test/helpers.rs