forked from ElliottjPierce/noiz
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
122 lines (100 loc) · 2.82 KB
/
Cargo.toml
File metadata and controls
122 lines (100 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
[package]
name = "noiz"
version = "0.4.0"
edition = "2024"
license = "MIT OR Apache-2.0"
keywords = ["noise", "bevy", "math", "graphics", "random"]
categories = [
"no-std::no-alloc",
"no-std",
"mathematics",
"game-development",
"graphics",
]
readme = "README.md"
repository = "https://github.com/ElliottjPierce/noiz"
homepage = "https://github.com/ElliottjPierce/noiz"
documentation = "https://docs.rs/noiz"
authors = ["Elliott Pierce"]
description = "A simple, configurable, blazingly fast noise library built for and with Bevy."
[dependencies]
bevy_math = { git = "https://github.com/processing/bevy", branch = "main", default-features = false, features = ["curve"] }
bevy_reflect = { git = "https://github.com/processing/bevy", branch = "main", default-features = false, features = [
"glam",
], optional = true }
serde = { version = "1", default-features = false, features = [
"derive",
], optional = true }
[dev-dependencies]
# for examples
bevy = { git = "https://github.com/processing/bevy", branch = "main" }
# For benches
criterion = "0.5"
fastnoise-lite = "1.1"
noise = "0.9"
libnoise = "1.1"
[features]
default = ["std", "bevy_reflect", "serialize"]
std = ["bevy_math/std", "bevy_reflect?/std", "serde?/std"]
libm = ["bevy_math/libm"]
nostd-libm = ["bevy_math/nostd-libm"]
serialize = ["dep:serde", "bevy_math/serialize"]
bevy_reflect = ["dep:bevy_reflect"]
debug = []
[profile.dev]
opt-level = 3
[profile.test]
opt-level = 1
[profile.release]
# Maximum Link Time Optimization for best performance
lto = "fat"
# Single codegen unit maximizes optimization opportunities
codegen-units = 1
# Disable incremental compilation for maximum optimization
incremental = false
opt-level = 3
[build]
rustflags = ["-O"]
[lints.clippy]
doc_markdown = "warn"
manual_let_else = "warn"
match_same_arms = "warn"
redundant_closure_for_method_calls = "warn"
redundant_else = "warn"
semicolon_if_nothing_returned = "warn"
type_complexity = "allow"
undocumented_unsafe_blocks = "warn"
unwrap_or_default = "warn"
needless_lifetimes = "allow"
too_many_arguments = "allow"
nonstandard_macro_braces = "warn"
ptr_as_ptr = "warn"
ptr_cast_constness = "warn"
ref_as_ptr = "warn"
too_long_first_doc_paragraph = "allow"
std_instead_of_core = "warn"
std_instead_of_alloc = "warn"
alloc_instead_of_core = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
[lints.rust]
missing_docs = "warn"
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(docsrs_dep)'] }
unsafe_op_in_unsafe_fn = "warn"
unused_qualifications = "warn"
[[example]]
name = "show_noise"
path = "examples/show_noise.rs"
[[example]]
name = "show_gradients"
path = "examples/show_gradients.rs"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "heightmap"
path = "examples/heightmap.rs"
[[bench]]
name = "compare"
path = "benches/compare/main.rs"
harness = false