• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2023 The Chromium Authors
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This file defines all third-party Rust dependencies approved for use
6# in Chromium.
7#
8# Crates which do not satisfy the rule-of-2 or which are testonly must be
9# marked as such in gnrt_config.toml.
10
11[package]
12name = "chromium"
13version = "0.1.0"
14edition = "2021"
15
16[workspace]
17
18[dependencies]
19anyhow = "1"
20base64 = "0.13"
21bitflags = "2"
22bytemuck = "1"
23bytes = "1"
24cfg-if = "1"
25cxx = "1"
26fend-core = "1"
27font-types = "0.7"
28hex = "0.4"
29hex-literal = "0.4"
30itertools = "0.11"
31lazy_static = "1"
32libc = "0.2"
33nom = "7.1.3"
34proc-macro2 = "1"
35prost = "0.13.3"
36qr_code = "2"
37quote = "1"
38rand = "0.8"
39rand_pcg = "0.3"
40read-fonts = "0.23"
41regex = "1"
42rustc-demangle-capi = "0.1"
43serde = "1"
44serde_json = "1"
45skrifa = "0.24.1"
46small_ctor = "0.1"
47static_assertions = "1"
48strum = "0.25.0"
49strum_macros = "0.25.3"
50wycheproof = "0.4"
51
52[dependencies.bstr]
53version = "1"
54# Disables the 'unicode' feature. See https://crrev.com/c/5925797
55default-features = false
56features = ["serde", "std"]
57
58[dependencies.png]
59version = "0.17"
60features = ["unstable"]  # For `std::simd`.
61
62[dependencies.tinyvec]
63version = "1.6.0"
64features = ["rustc_1_55"]
65
66[dependencies.cxxbridge-cmd]
67version = "1"
68artifact = "bin"
69
70[dependencies.log]
71version = "0.4"
72# `release_max_level_info` disables debug and trace logs at compile time
73# when debug asserts are off, which is when DCHECK_IS_ON() is false.
74features = [ "std", "release_max_level_info" ]
75
76[dependencies.rstest]
77default-features = false
78version = "0.22"
79
80[dependencies.rstest_reuse]
81version = "0.7"
82
83[dependencies.rustversion]
84version = "1"
85
86# Temporarily inform our cargo tooling that we care about
87# the new version of serde_json_lenient. We are in the midst
88# of CLs that move from the older to the newer.
89[dependencies.serde_json_lenient]
90package = "serde_json_lenient"
91version = "0.2"
92features = ["unbounded_depth", "float_roundtrip"]
93
94[dependencies.syn]
95version = "2"
96features = ["full"]
97
98[dependencies.unicode-linebreak]
99version = "0.1"
100
101[dependencies.zerocopy]
102version = "0.7.35"
103features = ["derive", "simd"]
104