Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 57 additions & 1 deletion Rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ default = ["std"]
f64 = []
std = ["num-traits/std"]
libm = ["num-traits/libm"]
serde = ["dep:serde"]

[dependencies]
num-traits = { version = "0.2.18", optional = true, default-features = false }
serde = { version = "1.0.216", features = ["derive"], optional = true }
1 change: 1 addition & 0 deletions Rust/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ Optionally enable these in your `Cargo.toml` file with your `fastnoise-lite` dep
- `"f64"`: Uses `f64`, instead of the default `f32`, X/Y coordinate sampling inputs.
- `"std"`: Uses Rust's standard library for floating point operations (`sqrt()`, `trunc()`, and `abs()`). Either this or `"libm"` must be enabled. This is enabled by default if no feature flags are specified (but note that specifying `"f64"` will mean this is no longer default, and must be specified too).
- `"libm"`: Enables `no_std` support. Either this or `"std"` must be enabled. Uses the [libm](https://crates.io/crates/libm) optional dependency (through the [num-traits](https://crates.io/crates/num-traits) optional dependency) to allow floating point operations (`sqrt()`, `trunc()`, and `abs()`) without relying on the Rust standard library's implementations. FNL is dependency-free except when using this feature flag, which pulls in these optional dependencies.
- `"serde"`: Enables (de)serialization with [`serde`](https://serde.rs/).

## Getting Started

Expand Down
Loading