Skip to content

Commit b277c5f

Browse files
deps: add swc rust deps
1 parent d9ee95f commit b277c5f

File tree

4,144 files changed

+1308340
-1406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,144 files changed

+1308340
-1406
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"files":{".cargo_vcs_info.json":"a9e489a9cb5309b1be3502e513cdf8b6d65d7f4dbd8d1b6273717e5f46d16370",".github/workflows/rust.yml":"0d0bc3c9d0fda45f18bc7dc169d90b78d2757a01f3e789fea5011c4e4d3ebd8f","Cargo.toml":"4ddbacdfae8fa9049a0f47b8f479a5e09536687917415f5c993c9c5438cbdbcd","Cargo.toml.orig":"84591ea3bef6c64be7d7b22aa3d12e3cdd723ec3afb6236c103bb497a8097dde","FAQ.md":"9eb41898523ee209a0a937f9bcb78afe45ad55ca0556f8a4d4063558098f6d1e","LICENSE-APACHE":"a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2","LICENSE-MIT":"0444c6991eead6822f7b9102e654448d51624431119546492e8b231db42c48bb","README.md":"d7f74d616a751bcca23d5d3b58a6daf556356a526c5f0b6aa0504715d176549a","build.rs":"d7dd5428c78b80bb3c99068561641ec661f0f94defbda17f85b443e358ab6396","rustfmt.toml":"e090969e99df9360705680cc0097cfaddae10c22dc2e01470592cf3b9787fd36","src/aes_hash.rs":"c29c24588676f669c9c5d928100d5743325a8a7aa19dae9e899b7108c2bf5309","src/convert.rs":"85789aaa5da2a1d37d91570ba6fa14ef261ff264dac40a624a88178f41c5494b","src/fallback_hash.rs":"6061ff5c42423f9028f487e4b042449424da6a5de5fd57fdb5f2b8063124312d","src/hash_map.rs":"1df153463e3c1f818bebf09938bfe63f18dc34cfeaf3041a67e2a604135e3f84","src/hash_quality_test.rs":"61a5d8a24b1882479ef72590f9165a2cfd5af3a26e1aca3e172061798d93f35e","src/hash_set.rs":"222d4563ea3749bc63ab7ded5c4a4239a0a1515b6a64301c0e04cf095386776d","src/lib.rs":"de037bb4e0535fdf4c432f87f0e0d0e5ba9a4ba25033f97c9a76ded33574aa9e","src/operations.rs":"dae1c602718e29e5839fad52e512a8cf168c1d888cfa9cd074302db7dbabb3d4","src/random_state.rs":"3a28f818165289071339299c49d8deb93fb27bf31ab1416349132d3af5ec2ad4","src/specialize.rs":"f2fe0de5d79851ee8ef6d977f418db8d5df5469eaa18a5173fa16cd61df8312e","tests/bench.rs":"e84993bb03089b11b8df0dccce273eab4d7aab966a71bc609d1e220ca783f023","tests/map_tests.rs":"fd6028cc96e1892b7d27cb5f55bf290b8e331305515598b35a54a3f349c5d7a7","tests/nopanic.rs":"0d28a46248d77283941db1d9fd154c68b965c81a0e3db1fe4a43e06fc448da8f"},"package":"5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"git": {
3+
"sha1": "9aa1ba20f05ed582eda04ea625d5658c92195a57"
4+
},
5+
"path_in_vcs": ""
6+
}
Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
name: Rust
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Install latest stable
11+
uses: dtolnay/rust-toolchain@master
12+
with:
13+
toolchain: stable
14+
components: clippy
15+
- name: check nostd
16+
run: cargo check --no-default-features
17+
- name: test nostd
18+
run: cargo test --no-default-features
19+
- name: check constrandom
20+
run: cargo check --no-default-features --features compile-time-rng
21+
- name: test constrandom
22+
run: cargo test --no-default-features --features compile-time-rng
23+
- name: check fixed-seed
24+
run: cargo check --no-default-features --features std
25+
- name: check
26+
run: cargo check
27+
- name: test
28+
run: cargo test
29+
nightly:
30+
name: nightly
31+
runs-on: ubuntu-latest
32+
env:
33+
RUSTFLAGS: -C target-cpu=native
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Install latest nightly
37+
uses: dtolnay/rust-toolchain@master
38+
with:
39+
toolchain: nightly
40+
components: clippy
41+
- name: check nightly
42+
run: cargo check -Z msrv-policy
43+
- name: test nightly
44+
run: cargo test
45+
- name: check serde
46+
run: cargo check --features serde
47+
- name: test serde
48+
run: cargo test --features serde
49+
linux_arm7:
50+
name: Linux ARMv7
51+
runs-on: ubuntu-latest
52+
steps:
53+
- uses: actions/checkout@v4
54+
- uses: dtolnay/rust-toolchain@master
55+
with:
56+
toolchain: stable
57+
targets: armv7-unknown-linux-gnueabihf
58+
- run: cargo check --target armv7-unknown-linux-gnueabihf
59+
- name: Install 1.72.0
60+
uses: dtolnay/rust-toolchain@master
61+
with:
62+
toolchain: 1.72.0
63+
targets: armv7-unknown-linux-gnueabihf
64+
- run: cargo +1.72.0 check --target armv7-unknown-linux-gnueabihf
65+
aarch64-apple-darwin:
66+
name: Aarch64 Apple Darwin
67+
runs-on: macos-latest
68+
steps:
69+
- uses: actions/checkout@v4
70+
- uses: dtolnay/rust-toolchain@master
71+
with:
72+
toolchain: stable
73+
targets: aarch64-apple-darwin
74+
- run: cargo check --target aarch64-apple-darwin
75+
- run: cargo test
76+
- run: cargo test --no-default-features --features compile-time-rng
77+
- name: Install 1.72.0
78+
uses: dtolnay/rust-toolchain@master
79+
with:
80+
toolchain: 1.72.0
81+
targets: aarch64-apple-darwin
82+
- run: cargo +1.72.0 check --target aarch64-apple-darwin
83+
i686-unknown-linux-gnu:
84+
name: Linux i686
85+
runs-on: ubuntu-latest
86+
steps:
87+
- uses: actions/checkout@v4
88+
- uses: dtolnay/rust-toolchain@master
89+
with:
90+
toolchain: stable
91+
targets: i686-unknown-linux-gnu
92+
- name: Install cross compile tools
93+
run: sudo apt-get install -y gcc-multilib libc6-i386 libc6-dev-i386
94+
- run: cargo check --target i686-unknown-linux-gnu
95+
- run: cargo test --target i686-unknown-linux-gnu
96+
- name: check constrandom
97+
run: cargo check --no-default-features --features compile-time-rng --target i686-unknown-linux-gnu
98+
- name: Install 1.72.0
99+
uses: dtolnay/rust-toolchain@master
100+
with:
101+
toolchain: 1.72.0
102+
targets: i686-unknown-linux-gnu
103+
- run: cargo +1.72.0 check --target i686-unknown-linux-gnu
104+
- name: check constrandom
105+
run: cargo +1.72.0 check --no-default-features --features compile-time-rng --target i686-unknown-linux-gnu
106+
x86_64-unknown-linux-gnu:
107+
name: Linux x86_64
108+
runs-on: ubuntu-latest
109+
env:
110+
RUSTFLAGS: -C target-cpu=skylake -C target-feature=+aes
111+
steps:
112+
- uses: actions/checkout@v4
113+
- uses: dtolnay/rust-toolchain@master
114+
with:
115+
toolchain: nightly
116+
targets: x86_64-unknown-linux-gnu
117+
- run: cargo check --target x86_64-unknown-linux-gnu
118+
- run: cargo test --target x86_64-unknown-linux-gnu
119+
- name: check constrandom
120+
run: cargo check --no-default-features --features compile-time-rng --target x86_64-unknown-linux-gnu
121+
- name: Install 1.72.0
122+
uses: dtolnay/rust-toolchain@master
123+
with:
124+
toolchain: 1.72.0
125+
- run: cargo +1.72.0 check --target x86_64-unknown-linux-gnu
126+
- name: check constrandom
127+
run: cargo +1.72.0 check --no-default-features --features compile-time-rng --target x86_64-unknown-linux-gnu
128+
thumbv6m:
129+
name: thumbv6m
130+
runs-on: ubuntu-latest
131+
steps:
132+
- uses: actions/checkout@v4
133+
- uses: dtolnay/rust-toolchain@master
134+
with:
135+
toolchain: stable
136+
targets: thumbv6m-none-eabi
137+
- run: cargo check --target thumbv6m-none-eabi --no-default-features
138+
wasm32-unknown-unknown:
139+
name: wasm
140+
runs-on: ubuntu-latest
141+
steps:
142+
- uses: actions/checkout@v4
143+
- uses: dtolnay/rust-toolchain@master
144+
with:
145+
toolchain: stable
146+
targets: wasm32-unknown-unknown
147+
- run: cargo check --target wasm32-unknown-unknown --no-default-features
148+
no_std:
149+
name: no-std build
150+
runs-on: ubuntu-latest
151+
steps:
152+
- uses: actions/checkout@v4
153+
- uses: dtolnay/rust-toolchain@master
154+
with:
155+
toolchain: nightly
156+
- run: cargo build --manifest-path=no_std_test/Cargo.toml
Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,183 @@
1+
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
2+
#
3+
# When uploading crates to the registry Cargo will automatically
4+
# "normalize" Cargo.toml files for maximal compatibility
5+
# with all versions of Cargo and also rewrite `path` dependencies
6+
# to registry (e.g., crates.io) dependencies.
7+
#
8+
# If you are reading this file be aware that the original Cargo.toml
9+
# will likely look very different (and much more reasonable).
10+
# See Cargo.toml.orig for the original contents.
11+
12+
[package]
13+
edition = "2018"
14+
rust-version = "1.60.0"
15+
name = "ahash"
16+
version = "0.8.12"
17+
authors = ["Tom Kaitchuck <Tom.Kaitchuck@gmail.com>"]
18+
build = "build.rs"
19+
exclude = [
20+
"/smhasher",
21+
"/benchmark_tools",
22+
]
23+
autobins = false
24+
autoexamples = false
25+
autotests = false
26+
autobenches = false
27+
description = "A non-cryptographic hash function using AES-NI for high performance"
28+
documentation = "https://docs.rs/ahash"
29+
readme = "README.md"
30+
keywords = [
31+
"hash",
32+
"hasher",
33+
"hashmap",
34+
"aes",
35+
"no-std",
36+
]
37+
categories = [
38+
"algorithms",
39+
"data-structures",
40+
"no-std",
41+
]
42+
license = "MIT OR Apache-2.0"
43+
repository = "https://github.com/tkaitchuck/ahash"
44+
45+
[package.metadata.docs.rs]
46+
features = ["std"]
47+
rustc-args = [
48+
"-C",
49+
"target-feature=+aes",
50+
]
51+
rustdoc-args = [
52+
"-C",
53+
"target-feature=+aes",
54+
]
55+
56+
[profile.bench]
57+
opt-level = 3
58+
lto = "fat"
59+
codegen-units = 1
60+
debug = 0
61+
debug-assertions = false
62+
63+
[profile.release]
64+
opt-level = 3
65+
lto = "fat"
66+
codegen-units = 1
67+
debug = 0
68+
debug-assertions = false
69+
70+
[profile.test]
71+
opt-level = 2
72+
lto = "fat"
73+
74+
[lib]
75+
name = "ahash"
76+
path = "src/lib.rs"
77+
test = true
78+
doctest = true
79+
bench = true
80+
doc = true
81+
82+
[[test]]
83+
name = "bench"
84+
path = "tests/bench.rs"
85+
86+
[[test]]
87+
name = "map_tests"
88+
path = "tests/map_tests.rs"
89+
90+
[[test]]
91+
name = "nopanic"
92+
path = "tests/nopanic.rs"
93+
94+
[[bench]]
95+
name = "ahash"
96+
path = "tests/bench.rs"
97+
harness = false
98+
99+
[[bench]]
100+
name = "map"
101+
path = "tests/map_tests.rs"
102+
harness = false
103+
104+
[dependencies.cfg-if]
105+
version = "1.0"
106+
107+
[dependencies.const-random]
108+
version = "0.1.17"
109+
optional = true
110+
111+
[dependencies.getrandom]
112+
version = "0.3.1"
113+
optional = true
114+
115+
[dependencies.portable-atomic]
116+
version = "1.0.0"
117+
optional = true
118+
119+
[dependencies.serde]
120+
version = "1.0.117"
121+
optional = true
122+
123+
[dependencies.zerocopy]
124+
version = "0.8.24"
125+
features = ["simd"]
126+
default-features = false
127+
128+
[dev-dependencies.criterion]
129+
version = "0.3.2"
130+
features = ["html_reports"]
131+
132+
[dev-dependencies.fnv]
133+
version = "1.0.5"
134+
135+
[dev-dependencies.fxhash]
136+
version = "0.2.1"
137+
138+
[dev-dependencies.hashbrown]
139+
version = "0.14.3"
140+
141+
[dev-dependencies.hex]
142+
version = "0.4.2"
143+
144+
[dev-dependencies.no-panic]
145+
version = "0.1.10"
146+
147+
[dev-dependencies.pcg-mwc]
148+
version = "0.2.1"
149+
150+
[dev-dependencies.rand]
151+
version = "0.8.5"
152+
153+
[dev-dependencies.seahash]
154+
version = "4.0"
155+
156+
[dev-dependencies.serde_json]
157+
version = "1.0.59"
158+
159+
[dev-dependencies.smallvec]
160+
version = "1.13.1"
161+
162+
[build-dependencies.version_check]
163+
version = "0.9.4"
164+
165+
[features]
166+
atomic-polyfill = [
167+
"dep:portable-atomic",
168+
"once_cell/critical-section",
169+
]
170+
compile-time-rng = ["const-random"]
171+
default = [
172+
"std",
173+
"runtime-rng",
174+
]
175+
nightly-arm-aes = []
176+
no-rng = []
177+
runtime-rng = ["getrandom"]
178+
std = []
179+
180+
[target.'cfg(not(all(target_arch = "arm", target_os = "none")))'.dependencies.once_cell]
181+
version = "1.18.0"
182+
features = ["alloc"]
183+
default-features = false

0 commit comments

Comments
 (0)