1 # This file lists all dependencies used from first-party code. It should not
2 # include transitive dependencies, as those will be determined from Cargo.
4 # All versions should be specified as a version epoch (a single non-zero version
5 # component such as "2" or "0.3").
7 # santas-workshop = "2"
9 # Any features used by first-party code must be declared here in order to ensure
10 # they are included in the crate when it is built.
12 # santas-workshop = { version = "3", features = [ "candycanes" ] }
14 # We have some extensions in order to provide additional info for the BUILD.gn
15 # files that can't be derived from Cargo. Any extension should be added to
16 # the dependency crate's set of properties.
18 # santas-workshop = { version = "3", some-extension = true }
22 # allow-first-party-usage: If false, the crate should not be visible to first
23 # party code even though it is present in this file. It defaults to true. Use
24 # this if you need to declare extensions for a crate that is only meant for
25 # use as a transitive dependency of third-party crates.
26 # e.g. allow-first-party-usage = false
28 # build-script-outputs: A list of file paths, rooted from where the BUILD.gn
29 # file is located, of files generated by the crate's build script.
30 # e.g. build-script-outputs = [ "crate/src/gen/gen_stuff.rs" ]
32 # Crates listed in dependencies will have a :lib GN target built for them in
33 # their BUILD.gn file. The :lib target can be depended on from Chromium
34 # production and test code. Third-party crates that are not listed in this
35 # file are not visible to Chromium code.
37 # Since cxx-gen is used as a standalone binary, rather than as a library, we
38 # can't depend on it in the usual way. Add it as a workspace member so cargo can
39 # resolve its dependencies.
42 "cxxbridge_cmd/v1/crate",
51 memoffset = { version = "0.6", features = [ "unstable_const" ] }
56 static_assertions = "1"
57 syn = {version = "2", features = ["full"]}
61 rustc-demangle-capi = "0.1"
63 [dependencies.serde_json_lenient]
65 features = [ "unbounded_depth", "float_roundtrip" ]
67 [dependencies.rustversion]
69 allow-first-party-usage = false
70 build-script-outputs = [ "version.rs" ]
72 [dependencies.unicode-linebreak]
74 allow-first-party-usage = false
75 build-script-outputs = [ "tables.rs" ]
77 # Crates listed in testonly-dependencies will have a :test_support GN target
78 # built for them in their BUILD.gn file, which is marked testonly=true. This
79 # allows them built in a configuration that can be used from Chromium tests, but
80 # not used from production.
82 # Note this is not the same as dev-dependencies: any features requested here
83 # also affect regular dependencies. They just have restricted visibility in GN.
84 [testonly-dependencies]
93 rstest = {version = "0.17", default-features=false}