[package]
edition = "2021"
rust-version = "1.85.0"
name = "cracode"
version = "1.0.1"
build = false
exclude = [
"logo.svg",
"examples/*",
".gitignore",
".github/",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A binary serialization / deserialization strategy for transforming structs into bytes and vice versa!"
documentation = "https://docs.rs/cracode"
readme = "README.md"
keywords = [
"binary",
"encode",
"decode",
"serialize",
"deserialize",
]
categories = [
"encoding",
"network-programming",
]
license = "MIT"
repository = "https://github.com/AriajSarkar/cracode"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
alloc = ["serde?/alloc"]
default = [
"std",
"derive",
]
derive = ["cracode_derive"]
std = [
"alloc",
"serde?/std",
]
[lib]
name = "cracode"
path = "src/lib.rs"
[[test]]
name = "alloc"
path = "tests/alloc.rs"
[[test]]
name = "atomic"
path = "tests/atomic.rs"
[[test]]
name = "basic_types"
path = "tests/basic_types.rs"
[[test]]
name = "context"
path = "tests/context.rs"
[[test]]
name = "derive"
path = "tests/derive.rs"
[[test]]
name = "derive_rename"
path = "tests/derive_rename.rs"
[[test]]
name = "error_size"
path = "tests/error_size.rs"
[[test]]
name = "issues"
path = "tests/issues.rs"
[[test]]
name = "serde"
path = "tests/serde.rs"
[[test]]
name = "std"
path = "tests/std.rs"
[[test]]
name = "utils"
path = "tests/utils.rs"
[[bench]]
name = "inline"
path = "benches/inline.rs"
harness = false
[[bench]]
name = "string"
path = "benches/string.rs"
harness = false
[[bench]]
name = "varint"
path = "benches/varint.rs"
harness = false
[dependencies.cracode_derive]
version = "=1.0.1"
optional = true
[dependencies.serde]
version = "1.0"
optional = true
default-features = false
[dependencies.unty]
version = "0.0.5"
[dev-dependencies.bumpalo]
version = "3.16.0"
features = ["collections"]
[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]
[dev-dependencies.criterion]
version = "0.8"
[dev-dependencies.glam]
version = "0.32"
features = ["serde"]
[dev-dependencies.ouroboros]
version = "0.18.3"
[dev-dependencies.rand]
version = "0.10"
[dev-dependencies.serde]
version = "1.0"
features = ["derive"]
[dev-dependencies.serde_derive]
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
default-features = false
[dev-dependencies.tempfile]
version = "3.2"
[dev-dependencies.uuid]
version = "1.1"
features = ["serde"]
[profile.bench]
lto = true
codegen-units = 1
debug = 1