hadris-common 2.0.0

Common types and functions used by Hadris
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.88.0"
name = "hadris-common"
version = "2.0.0"
authors = ["hxyulin"]
build = false
include = [
    "src/**/*",
    "Cargo.toml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Common types and functions used by Hadris"
readme = "README.md"
keywords = [
    "filesystem",
    "endian",
    "crc",
    "iso-string",
]
categories = [
    "no-std",
    "filesystem",
]
license = "MIT"
repository = "https://github.com/hxyulin/hadris"

[features]
alloc = [
    "hadris-fixed/alloc",
    "hadris-io/alloc",
    "hadris-path/alloc",
]
async = ["hadris-io/async"]
bytemuck = [
    "dep:bytemuck",
    "hadris-fixed/bytemuck",
]
default = [
    "bytemuck",
    "std",
]
optical = ["alloc"]
std = [
    "dep:chrono",
    "chrono?/std",
    "dep:crc",
    "dep:rand",
    "alloc",
    "hadris-io/std",
]
sync = ["hadris-io/sync"]

[lib]
name = "hadris_common"
path = "src/lib.rs"

[dependencies.bytemuck]
version = "1.22.0"
features = ["derive"]
optional = true
default-features = false

[dependencies.chrono]
version = "0.4.40"
optional = true
default-features = false

[dependencies.crc]
version = "3.2.1"
optional = true

[dependencies.hadris-fixed]
version = "2.0.0"
default-features = false

[dependencies.hadris-io]
version = "2.0.0"
default-features = false

[dependencies.hadris-path]
version = "2.0.0"
default-features = false

[dependencies.noalloc]
version = "0.0.1"

[dependencies.rand]
version = "0.10.2"
optional = true

[dependencies.zerocopy]
version = "0.8"
features = ["derive"]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"

[dev-dependencies.static_assertions]
version = "1.1.0"