Skip to content

Commit cbc28b2

Browse files
committed
Add rkyv support
Adds support for rust-lang/rust#153283
1 parent a51ec77 commit cbc28b2

File tree

5 files changed

+378
-49
lines changed

5 files changed

+378
-49
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ env:
1212
jobs:
1313
cargo-test:
1414
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
features:
18-
- default
19-
- rustc-hash
2015
steps:
2116
- uses: actions/checkout@v4
2217
- uses: dtolnay/rust-toolchain@stable
18+
- uses: taiki-e/install-action@a37010ded18ff788be4440302bd6830b1ae50d8b # v2.68.25
19+
with:
20+
tool: cargo-hack@0.6.43
2321
- uses: Swatinem/rust-cache@v2
24-
- run: cargo test --no-default-features --features '${{ matrix.features }}'
22+
- run: cargo hack test --feature-powerset

COMMIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
931e2c4e43fde6a308ee9933538142ed0927f6d9
1+
1d81c5021a21453e77ca2a0cd7f2a8006e9775ae

Cargo.toml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ include = ["Cargo.toml", "CHANGELOG.md", "README.md", "LICENSE-MIT", "LICENSE-AP
1212
serde = {version="1.0.186"}
1313
serde_derive = {version="1.0.186"}
1414
rustc-hash = {version="2", optional=true}
15+
rkyv = { version = "0.8", optional = true }
1516

1617
[features]
17-
default = []
18+
default = [] # TODO: Remove this next time we make a breaking release
1819

19-
# Switch the hashmaps used in rustdoc-types to the FxHashMap from rustc-hash.
20-
#
21-
# This might improve performace if your are reading the rustdoc JSON from large
22-
# crates like aws_sdk_ec2
2320
rustc-hash = ["dep:rustc-hash"]
21+
rkyv_0_8 = ["dep:rkyv"]
2422

2523
[dev-dependencies]
2624
bincode = "1.3.3"

0 commit comments

Comments
 (0)