-
-
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 unty dependency and added type checks (#667)
* Added unty dependency and added type checks * Bumped unty 0.0.2 * Bump unty to 0.0.3 * Removed unneeded + Sized requirements Optimize encode for [T; N] Made BinaryHeap<T> proxy to Vec<T> Made VecDeque decode/borrowdecode proxy to Vec<T> Optimize VecDeque::<u8>::Encode to write 2 slices directly Optimize Vec<u8> borrowdecode implementation --------- Co-authored-by: Victor Koenders <[email protected]>
- Loading branch information
1 parent
2969a24
commit 08556ca
Showing
4 changed files
with
195 additions
and
233 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 |
---|---|---|
@@ -1,69 +1,70 @@ | ||
[workspace] | ||
members = ["derive", "compatibility"] | ||
|
||
[package] | ||
name = "bincode" | ||
version = "2.0.0-rc.3" # remember to update html_root_url and bincode_derive | ||
authors = [ | ||
"Ty Overby <[email protected]>", | ||
"Zoey Riordan <[email protected]>", | ||
"Victor Koenders <[email protected]>", | ||
] | ||
exclude = ["logo.svg", "examples/*", ".gitignore", ".github/"] | ||
|
||
publish = true | ||
|
||
repository = "https://github.com/bincode-org/bincode" | ||
documentation = "https://docs.rs/bincode" | ||
readme = "./readme.md" | ||
categories = ["encoding", "network-programming"] | ||
keywords = ["binary", "encode", "decode", "serialize", "deserialize"] | ||
|
||
license = "MIT" | ||
description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!" | ||
|
||
edition = "2021" | ||
|
||
[features] | ||
default = ["std", "derive"] | ||
std = ["alloc", "serde?/std"] | ||
alloc = ["serde?/alloc"] | ||
derive = ["bincode_derive"] | ||
|
||
[dependencies] | ||
bincode_derive = { path = "derive", version = "2.0.0-rc.3", optional = true } | ||
serde = { version = "1.0", default-features = false, optional = true } | ||
|
||
# Used for tests | ||
[dev-dependencies] | ||
serde_derive = "1.0" | ||
serde_json = { version = "1.0", default-features = false } | ||
tempfile = "3.2" | ||
criterion = "0.5" | ||
rand = "0.8" | ||
uuid = { version = "1.1", features = ["serde"] } | ||
chrono = { version = "0.4", features = ["serde"] } | ||
glam = { version = "0.24", features = ["serde"] } | ||
bincode_1 = { version = "1.3", package = "bincode" } | ||
serde = { version = "1.0", features = ["derive"] } | ||
|
||
[[bench]] | ||
name = "varint" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "inline" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "string" | ||
harness = false | ||
|
||
[profile.bench] | ||
codegen-units = 1 | ||
debug = 1 | ||
lto = true | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] | ||
[workspace] | ||
members = ["derive", "compatibility"] | ||
|
||
[package] | ||
name = "bincode" | ||
version = "2.0.0-rc.3" # remember to update html_root_url and bincode_derive | ||
authors = [ | ||
"Ty Overby <[email protected]>", | ||
"Zoey Riordan <[email protected]>", | ||
"Victor Koenders <[email protected]>", | ||
] | ||
exclude = ["logo.svg", "examples/*", ".gitignore", ".github/"] | ||
|
||
publish = true | ||
|
||
repository = "https://github.com/bincode-org/bincode" | ||
documentation = "https://docs.rs/bincode" | ||
readme = "./readme.md" | ||
categories = ["encoding", "network-programming"] | ||
keywords = ["binary", "encode", "decode", "serialize", "deserialize"] | ||
|
||
license = "MIT" | ||
description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!" | ||
|
||
edition = "2021" | ||
|
||
[features] | ||
default = ["std", "derive"] | ||
std = ["alloc", "serde?/std"] | ||
alloc = ["serde?/alloc"] | ||
derive = ["bincode_derive"] | ||
|
||
[dependencies] | ||
bincode_derive = { path = "derive", version = "2.0.0-rc.3", optional = true } | ||
serde = { version = "1.0", default-features = false, optional = true } | ||
unty = "0.0.3" | ||
|
||
# Used for tests | ||
[dev-dependencies] | ||
serde_derive = "1.0" | ||
serde_json = { version = "1.0", default-features = false } | ||
tempfile = "3.2" | ||
criterion = "0.5" | ||
rand = "0.8" | ||
uuid = { version = "1.1", features = ["serde"] } | ||
chrono = { version = "0.4", features = ["serde"] } | ||
glam = { version = "0.24", features = ["serde"] } | ||
bincode_1 = { version = "1.3", package = "bincode" } | ||
serde = { version = "1.0", features = ["derive"] } | ||
|
||
[[bench]] | ||
name = "varint" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "inline" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "string" | ||
harness = false | ||
|
||
[profile.bench] | ||
codegen-units = 1 | ||
debug = 1 | ||
lto = true | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true | ||
rustdoc-args = ["--cfg", "docsrs"] |
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
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.