burn-import 0.20.1

Library for importing datamodels into the Burn framework
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"
name = "burn-import"
version = "0.20.1"
authors = [
    "Dilshod Tadjibaev (@antimora)",
    "Nathaniel Simard (@nathanielsimard)",
]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "onnx2burn"
description = "Library for importing datamodels into the Burn framework"
documentation = "https://docs.rs/burn-import"
readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/tracel-ai/burn/tree/main/crates/burn-import"
resolver = "2"

[package.metadata.docs.rs]
features = ["default"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "onnx",
    "onnx-mmap",
    "pytorch",
    "safetensors",
]
onnx = [
    "burn-ndarray",
    "onnx-ir",
]
onnx-mmap = ["onnx-ir?/mmap"]
pytorch = [
    "burn/record-item-custom-serde",
    "thiserror",
    "zip",
]
safetensors = [
    "burn/record-item-custom-serde",
    "thiserror",
    "zip",
    "candle-core",
]
tracing = [
    "burn/tracing",
    "burn-ndarray?/tracing",
    "burn-store/tracing",
]

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

[[bin]]
name = "onnx2burn"
path = "src/bin/onnx2burn.rs"

[dependencies.burn]
version = "0.20.1"
features = ["std"]
default-features = false

[dependencies.burn-ndarray]
version = "0.20.1"
optional = true
default-features = false

[dependencies.burn-store]
version = "0.20.1"
features = [
    "std",
    "pytorch",
    "burnpack",
]
default-features = false

[dependencies.candle-core]
version = "0.9.1"
optional = true

[dependencies.derive-new]
version = "0.7.0"
default-features = false

[dependencies.half]
version = "2.7.1"
features = [
    "alloc",
    "num-traits",
    "serde",
]
default-features = false

[dependencies.log]
version = "0.4.29"
default-features = false

[dependencies.onnx-ir]
version = "0.20.1"
optional = true
default-features = false

[dependencies.proc-macro2]
version = "1.0.104"

[dependencies.quote]
version = "1.0.42"

[dependencies.regex]
version = "1.12.1"
features = [
    "perf",
    "unicode",
    "default",
]
default-features = false

[dependencies.rust-format]
version = "0.3.4"
features = [
    "pretty_please",
    "post_process",
]

[dependencies.serde]
version = "1.0.228"
features = [
    "derive",
    "alloc",
    "derive",
]
default-features = false

[dependencies.serde_json]
version = "1.0.148"
features = ["std"]
default-features = false

[dependencies.syn]
version = "2.0.111"
features = [
    "full",
    "extra-traits",
    "parsing",
]

[dependencies.thiserror]
version = "2"
optional = true
default-features = false

[dependencies.tracing-core]
version = "0.1.36"
default-features = false

[dependencies.tracing-subscriber]
version = "0.3.20"
features = [
    "default",
    "fmt",
    "env-filter",
]

[dependencies.zip]
version = "7.0.0"
optional = true

[dev-dependencies.insta]
version = "1.45.0"

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[dev-dependencies.rstest]
version = "0.26.1"

[lints.clippy]

[lints.rustdoc]
broken_intra_doc_links = "deny"
invalid_html_tags = "deny"