-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
Cargo.toml
51 lines (42 loc) · 1.93 KB
/
Cargo.toml
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
[workspace]
members = ["packages/*"]
resolver = "2"
[patch.crates-io]
# Use our fork of glsl-lang that allows it to parse #moj_import directives
glsl-lang = { git = "https://github.com/ComunidadAylas/glsl-lang" }
glsl-lang-lexer = { git = "https://github.com/ComunidadAylas/glsl-lang" }
glsl-lang-pp = { git = "https://github.com/ComunidadAylas/glsl-lang" }
glsl-lang-types = { git = "https://github.com/ComunidadAylas/glsl-lang" }
# Use our fork of mmap, pulled by development dependencies for benchmarking, to fix its
# dependency on unmaintained crates and reduce duplicate dependency versions. Some of
# the changes were authored by jbreitbart.
# Related PR: https://github.com/rbranson/rust-mmap/pull/13
mmap = { git = "https://github.com/ComunidadAylas/rust-mmap" }
# Use an Oxipng PR that significantly reduces build dependencies and time in our use case:
# https://github.com/shssoichiro/oxipng/pull/645
oxipng = { git = "https://github.com/shssoichiro/oxipng", branch = "refactor/mangen-xtask" }
# Use our fork of spng to add a high-level API for customizing the decoder chunk CRC mismatch action.
# Related PR: https://github.com/aloucks/spng-rs/pull/16
spng = { git = "https://github.com/ComunidadAylas/spng-rs", branch = "feat/decoder-crc-action" }
[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"
[profile.bench]
inherits = "release"
debug = true
strip = "none"
[workspace.lints.rust]
unsafe_code = "deny"
missing_docs = "deny"
# deny instead of forbid is required by the thread_local macro with const initializers
unsafe_op_in_unsafe_fn = "deny"
[workspace.lints.clippy]
#pedantic = "warn" # TODO too pedantic for now, fix the warnings and re-enable this sooner than later
cargo = { level = "warn", priority = -1 }
multiple_crate_versions = "allow" # Introduces much noise, not better than cargo deny
[workspace.lints.rustdoc]
invalid_html_tags = "deny"
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"