-
-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added a pipeline to deny 'no_global_oom_handling'
Added try_reserve to VecWriter, Vec, VecDeque and HashMap Made the OOM test succeed on the latest nightly Made the OOM check work on nightly Disabled stable checks for now Removed feature that is stable in current nightly Fixed issue where Box<[T]> would not do the size limit check Added a drop guard to `impl<T> Decode for Vec<T>` to make sure memory is not leaked when T::Decode panics Made the implementation of `VecWriter` use less lines of unsfe Fixed errors while merging
- Loading branch information
1 parent
3a4f299
commit bc344d2
Showing
6 changed files
with
463 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
"uses": "actions-rs/cargo@v1", | ||
"with": { | ||
"command": "check", | ||
"args": "--all-features" | ||
"args": "--features ci" | ||
}, | ||
"name": "Run `cargo check`" | ||
}, | ||
|
@@ -128,6 +128,32 @@ fi", | |
} | ||
] | ||
}, | ||
"no_oom": { | ||
"name": "Strict OOM checks", | ||
"runs-on": "ubuntu-latest", | ||
"steps": [ | ||
{ | ||
"uses": "actions/checkout@v2", | ||
"name": "Checkout" | ||
}, | ||
{ | ||
"uses": "actions-rs/toolchain@v1", | ||
"with": { | ||
"profile": "minimal", | ||
"toolchain": "nightly", | ||
"components": "rust-src", | ||
"override": true | ||
}, | ||
"name": "Install Rust nightly" | ||
}, | ||
{ | ||
"run": "cargo build --no-default-features --features unstable-strict-oom-checks -Z build-std=core,alloc --target x86_64-unknown-linux-gnu", | ||
"env": { | ||
"RUSTFLAGS": "--cfg no_global_oom_handling" | ||
} | ||
} | ||
] | ||
}, | ||
"lints": { | ||
"name": "Lints", | ||
"runs-on": "ubuntu-latest", | ||
|
@@ -158,7 +184,7 @@ fi", | |
"uses": "actions-rs/cargo@v1", | ||
"with": { | ||
"command": "clippy", | ||
"args": "--all-features -- -D warnings" | ||
"args": "--features ci -- -D warnings" | ||
}, | ||
"name": "Run `cargo clippy`" | ||
} | ||
|
@@ -213,7 +239,7 @@ fi", | |
"uses": "actions-rs/[email protected]", | ||
"with": { | ||
"version": "0.19.1", | ||
"args": "--all --all-features" | ||
"args": "--all --features ci" | ||
} | ||
}, | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
[workspace] | ||
members = [ | ||
"derive", | ||
"compatibility" | ||
] | ||
members = ["derive", "compatibility"] | ||
|
||
[package] | ||
name = "bincode" | ||
version = "2.0.0-rc.1" # remember to update html_root_url and bincode_derive | ||
authors = ["Ty Overby <[email protected]>", "Zoey Riordan <[email protected]>", "Victor Koenders <[email protected]>"] | ||
authors = [ | ||
"Ty Overby <[email protected]>", | ||
"Zoey Riordan <[email protected]>", | ||
"Victor Koenders <[email protected]>", | ||
] | ||
exclude = ["logo.svg", "examples/*", ".gitignore", ".github/"] | ||
|
||
publish = true | ||
publish = true | ||
|
||
repository = "https://github.com/bincode-org/bincode" | ||
documentation = "https://docs.rs/bincode" | ||
|
@@ -29,6 +30,12 @@ std = ["alloc", "serde?/std"] | |
alloc = ["serde?/alloc"] | ||
derive = ["bincode_derive"] | ||
|
||
## !! Not for public use !! | ||
# features to check again in CI | ||
ci = ["std", "alloc", "derive", "serde"] | ||
# experimental strict OOM checks, requires nightly features | ||
unstable-strict-oom-checks = ["alloc"] | ||
|
||
[dependencies] | ||
bincode_derive = { path = "derive", version = "2.0.0-rc.1", optional = true } | ||
serde = { version = "1.0", default-features = false, optional = true } | ||
|
@@ -42,7 +49,7 @@ criterion = "0.3" | |
rand = "0.8" | ||
uuid = { version = "0.8", features = ["serde"] } | ||
chrono = { version = "0.4", features = ["serde"] } | ||
glam = { version="0.20.5", features=["serde"] } | ||
glam = { version = "0.20.5", features = ["serde"] } | ||
|
||
[[bench]] | ||
name = "varint" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.