xref: /aosp_15_r20/external/bazelbuild-rules_rust/examples/musl_cross_compiling/Cargo.toml (revision d4726bddaa87cc4778e7472feed243fa4b6c267f)
1[workspace]
2members = [
3    ".",
4    # This proc macro exists as a regression test for https://github.com/bazelbuild/rules_rust/issues/2777
5    "local_proc_macro",
6]
7
8[package]
9name = "musl_cross_compiling"
10version = "0.0.0"
11edition = "2021"
12publish = false
13
14[lib]
15path = "/dev/null"
16
17[dependencies]
18# This package has a platform-specific dependency on zbus, which depends on the derivative proc-macro.
19# This is here to ensure feature resolution works even if exec != target.
20keyring = "=2.3.3"
21
22# If we just to top-level per-platform resolves, we end up with platform-specific features on this crate, such that the `visit` feature is only enabled on Linux.
23# This causes problems when cross-compiling and using this crate from a proc-macro, because we compile the proc-macro against syn with features resolved for the wrong platform.
24"syn" = "=1.0.109"
25