Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lee-orr/bevy_lean_sdf
https://github.com/lee-orr/bevy_lean_sdf
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/lee-orr/bevy_lean_sdf
- Owner: lee-orr
- License: apache-2.0
- Created: 2022-08-30T19:40:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-12T03:54:58.000Z (about 2 years ago)
- Last Synced: 2024-11-01T01:04:55.124Z (3 months ago)
- Language: Rust
- Size: 12 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE.md
Awesome Lists containing this project
README
# About
This is an experiment in creating usable SDF renders for bevy - including in a WebGL context, or in older devices.
## Instructions
### Testing
1. Use doc tests aggressively to show how APIs should be used.
You can use `#` to hide a setup line from the doc tests.
2. Unit test belong near the code they are testing. Use `#[cfg(test)]` on the test module to ignore it during builds, and `#[test]` on the test functions to ensure they are run.
3. Integration tests should be stored in the top level `tests` folder, importing functions from `lib.rs`.Use `cargo test` to run all tests.
### CI
The CI will:
1. Ensure the code is formatted with `cargo fmt`.
2. Ensure that the code compiles.
3. Ensure that (almost) all `clippy` lints pass.
4. Ensure all tests pass on Windows, MacOS and Ubuntu.Check this locally with:
1. `cargo run -p ci`
2. `cargo test --workspace`To manually rerun CI:
1. Navigate to the `Actions` tab.
2. Use the dropdown menu in the CI run of interest and select "View workflow file".
3. In the top-right corner, select "Rerun workflow".### Documentation
Reference documentation is handled with standard Rust doc strings.
Use `cargo doc --open` to build and then open the docs.Design docs (or other book-format documentation) is handled with [mdBook](https://rust-lang.github.io/mdBook/index.html).
Install it with `cargo install mdbook`, then use `mdbook serve --open` to launch the docs.### Benchmarking
To run the benchmarks, use `cargo bench`.
For more documentation on making your own benchmarks, check out [criterion's docs](https://bheisler.github.io/criterion.rs/book/index.html).