-
Notifications
You must be signed in to change notification settings - Fork 234
Expand file tree
/
Copy pathCargo.toml
More file actions
168 lines (153 loc) · 6.27 KB
/
Copy pathCargo.toml
File metadata and controls
168 lines (153 loc) · 6.27 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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
[workspace]
resolver = "2"
members = [
"xilem",
"xilem_core",
"xilem_masonry",
"masonry",
"masonry_core",
"masonry_imaging",
"masonry_testing",
"masonry_winit",
"xilem_web",
"xilem_web/web_examples/counter",
"xilem_web/web_examples/counter_custom_element",
"xilem_web/web_examples/elm",
"xilem_web/web_examples/fetch",
"xilem_web/web_examples/todomvc",
"xilem_web/web_examples/mathml_svg",
"xilem_web/web_examples/raw_dom_access",
"xilem_web/web_examples/spawn_tasks",
"xilem_web/web_examples/svgtoy",
"xilem_web/web_examples/svgdraw",
"xilem_web/web_examples/open_and_save_file",
"tree_arena",
"placehero",
"include_doc_path",
]
[workspace.package]
# Xilem version, also used by other packages which want to mimic Xilem's version.
# Right now those packages include: xilem_core, xilem_masonry, xilem_web, masonry, masonry_core, masonry_imaging, masonry_testing, masonry_winit.
#
# NOTE: When bumping this, remember to also bump the aforementioned other packages'
# version in the dependencies section of this file.
version = "0.4.0"
edition = "2024"
# Keep in sync with RUST_MIN_VER in .github/workflows/ci.yml, with the relevant README.md files.
rust-version = "1.92"
license = "Apache-2.0"
repository = "https://github.com/linebender/xilem"
[workspace.dependencies]
masonry = { version = "0.4.0", path = "masonry", default-features = false }
masonry_core = { version = "0.4.0", path = "masonry_core", default-features = false }
masonry_imaging = { version = "0.4.0", path = "masonry_imaging", default-features = false }
masonry_testing = { version = "0.4.0", path = "masonry_testing", default-features = false }
masonry_winit = { version = "0.4.0", path = "masonry_winit", default-features = false }
xilem_core = { version = "0.4.0", path = "xilem_core" }
xilem_masonry = { version = "0.4.0", path = "xilem_masonry" }
xilem = { version = "0.4.0", path = "xilem", default-features = false }
tree_arena = { version = "0.2.0", path = "tree_arena" }
include_doc_path = { version = "0.1.0", path = "include_doc_path", package = "linebender_include_doc_path" }
anymore = "1.0.0"
imaging = { git = "https://github.com/forest-rs/imaging.git", rev = "79f02aedf5b65b4cd151ef45d8b40013d7289ee2" }
imaging_wgpu = { git = "https://github.com/forest-rs/imaging.git", rev = "79f02aedf5b65b4cd151ef45d8b40013d7289ee2", features = [
"wgpu-28",
] }
imaging_vello = { git = "https://github.com/forest-rs/imaging.git", rev = "79f02aedf5b65b4cd151ef45d8b40013d7289ee2" }
imaging_vello_hybrid = { git = "https://github.com/forest-rs/imaging.git", rev = "79f02aedf5b65b4cd151ef45d8b40013d7289ee2" }
imaging_vello_cpu = { git = "https://github.com/forest-rs/imaging.git", rev = "79f02aedf5b65b4cd151ef45d8b40013d7289ee2" }
imaging_skia = { git = "https://github.com/forest-rs/imaging.git", rev = "79f02aedf5b65b4cd151ef45d8b40013d7289ee2", features = [
"gpu",
] }
vello = { version = "0.8.0", default-features = false, features = ["wgpu"] }
wgpu = "28.0.0"
kurbo = "0.13.0"
parley = { version = "0.8.0", features = ["accesskit"] }
# TODO: Use no_std correctly in Xilem Web.
peniko = "0.6.0"
winit = "0.30.13"
tracing = { version = "0.1.44", default-features = false }
tracing-wasm = "0.2.1"
console_error_panic_hook = "0.1.7"
# Remove "std" when that's fixed upstream
ui-events = { version = "0.3.0", default-features = false, features = ["kurbo"] }
ui-events-winit = { version = "0.3.0", default-features = false }
smallvec = "1.15.1"
hashbrown = { version = "0.17.0", default-features = false, features = ["default-hasher"] }
copypasta = "0.10.2"
dpi = "0.1.2"
image = { version = "0.25.10", default-features = false }
resvg = "0.47.0"
usvg = "0.47.0"
web-time = "1.1.0"
bitflags = "2.11.0"
accesskit = "0.24.0"
accesskit_winit = { version = "0.32.2", default-features = false, features = [
"accesskit_unix",
"tokio",
"rwh_06",
] }
accesskit_consumer = "0.35.0"
time = "0.3.47"
reqwest = { version = "0.12.28", default-features = false, features = [
# We use rustls as Android doesn't ship with openssl
# and this is likely to be easiest to get working.
"rustls-tls",
] }
divan = "0.1.21"
[workspace.lints]
# unsafe code is not allowed in Xilem or Masonry
# We would like to set this to `forbid`, but we have to use `deny` because `android_activity`
# requires us to use the `#[unsafe(no_mangle)]` attribute
# (And cargo doesn't let us have platform specific lints here)
rust.unsafe_code = "deny"
rust.unexpected_cfgs = { level = "warn", check-cfg = ['cfg(compile_stress_test)'] }
# LINEBENDER LINT SET - Cargo.toml - v8
# See https://linebender.org/wiki/canonical-lints/
rust.keyword_idents_2024 = "forbid"
rust.non_ascii_idents = "forbid"
rust.non_local_definitions = "forbid"
rust.unsafe_op_in_unsafe_fn = "forbid"
rust.elided_lifetimes_in_paths = "warn"
rust.missing_debug_implementations = "warn"
rust.missing_docs = "warn"
rust.trivial_numeric_casts = "warn"
rust.unnameable_types = "warn"
rust.unreachable_pub = "warn"
rust.unused_import_braces = "warn"
rust.unused_lifetimes = "warn"
rust.unused_macro_rules = "warn"
rust.unused_qualifications = "warn"
clippy.too_many_arguments = "allow"
clippy.allow_attributes_without_reason = "warn"
clippy.cast_possible_truncation = "warn"
clippy.cast_possible_wrap = "warn"
clippy.collection_is_never_read = "warn"
clippy.default_trait_access = "warn"
clippy.dbg_macro = "warn"
clippy.debug_assert_with_mut_call = "warn"
clippy.doc_markdown = "warn"
clippy.fn_to_numeric_cast_any = "warn"
clippy.infinite_loop = "warn"
clippy.large_stack_arrays = "warn"
clippy.mismatching_type_param_order = "warn"
clippy.missing_assert_message = "warn"
clippy.missing_fields_in_debug = "warn"
clippy.same_functions_in_if_condition = "warn"
clippy.semicolon_if_nothing_returned = "warn"
clippy.should_panic_without_expect = "warn"
clippy.todo = "warn"
clippy.unseparated_literal_suffix = "warn"
clippy.use_self = "warn"
clippy.cargo_common_metadata = "warn"
clippy.negative_feature_names = "warn"
clippy.redundant_feature_names = "warn"
clippy.wildcard_dependencies = "warn"
# END LINEBENDER LINT SET
[profile.build-perf]
inherits = "dev"
[profile.ci]
inherits = "dev"
debug = 0 # Don't compile debug info to reduce compilation artifact size for cache benefits.
[profile.ci.package."*"]
debug-assertions = true # Keep always on for dependencies for cache reuse.