153 lines
3.0 KiB
TOML
153 lines
3.0 KiB
TOML
|
|
# 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 = "2021"
|
||
|
|
rust-version = "1.81.0"
|
||
|
|
name = "wasm-metadata"
|
||
|
|
version = "0.244.0"
|
||
|
|
build = false
|
||
|
|
autolib = false
|
||
|
|
autobins = false
|
||
|
|
autoexamples = false
|
||
|
|
autotests = false
|
||
|
|
autobenches = false
|
||
|
|
description = "Read and manipulate WebAssembly metadata"
|
||
|
|
readme = "README.md"
|
||
|
|
license = "Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT"
|
||
|
|
repository = "https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasm-metadata"
|
||
|
|
|
||
|
|
[features]
|
||
|
|
default = [
|
||
|
|
"oci",
|
||
|
|
"serde",
|
||
|
|
]
|
||
|
|
oci = [
|
||
|
|
"dep:auditable-serde",
|
||
|
|
"dep:flate2",
|
||
|
|
"dep:url",
|
||
|
|
"dep:spdx",
|
||
|
|
"dep:serde_json",
|
||
|
|
"serde",
|
||
|
|
]
|
||
|
|
serde = [
|
||
|
|
"dep:serde_derive",
|
||
|
|
"dep:serde",
|
||
|
|
]
|
||
|
|
|
||
|
|
[lib]
|
||
|
|
name = "wasm_metadata"
|
||
|
|
path = "src/lib.rs"
|
||
|
|
|
||
|
|
[[test]]
|
||
|
|
name = "component"
|
||
|
|
path = "tests/component.rs"
|
||
|
|
|
||
|
|
[[test]]
|
||
|
|
name = "module"
|
||
|
|
path = "tests/module.rs"
|
||
|
|
|
||
|
|
[dependencies.anyhow]
|
||
|
|
version = "1.0.58"
|
||
|
|
|
||
|
|
[dependencies.auditable-serde]
|
||
|
|
version = "0.8.0"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.clap]
|
||
|
|
version = "4.0.0"
|
||
|
|
features = ["derive"]
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.flate2]
|
||
|
|
version = "1.1.0"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.indexmap]
|
||
|
|
version = "2.7.0"
|
||
|
|
features = ["serde"]
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[dependencies.serde]
|
||
|
|
version = "1.0.166"
|
||
|
|
features = ["alloc"]
|
||
|
|
optional = true
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[dependencies.serde_derive]
|
||
|
|
version = "1.0.166"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.serde_json]
|
||
|
|
version = "1"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.spdx]
|
||
|
|
version = "0.10.1"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.url]
|
||
|
|
version = "2.0.0"
|
||
|
|
optional = true
|
||
|
|
|
||
|
|
[dependencies.wasm-encoder]
|
||
|
|
version = "0.244.0"
|
||
|
|
features = [
|
||
|
|
"std",
|
||
|
|
"component-model",
|
||
|
|
]
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[dependencies.wasmparser]
|
||
|
|
version = "0.244.0"
|
||
|
|
features = [
|
||
|
|
"simd",
|
||
|
|
"std",
|
||
|
|
"component-model",
|
||
|
|
"hash-collections",
|
||
|
|
]
|
||
|
|
default-features = false
|
||
|
|
|
||
|
|
[lints.clippy]
|
||
|
|
clone_on_copy = "warn"
|
||
|
|
manual_strip = "warn"
|
||
|
|
map_clone = "warn"
|
||
|
|
uninlined_format_args = "warn"
|
||
|
|
unnecessary_cast = "warn"
|
||
|
|
unnecessary_fallible_conversions = "warn"
|
||
|
|
unnecessary_mut_passed = "warn"
|
||
|
|
unnecessary_to_owned = "warn"
|
||
|
|
|
||
|
|
[lints.clippy.all]
|
||
|
|
level = "allow"
|
||
|
|
priority = -1
|
||
|
|
|
||
|
|
[lints.rust]
|
||
|
|
deprecated-safe-2024 = "warn"
|
||
|
|
keyword_idents_2024 = "warn"
|
||
|
|
missing-unsafe-on-extern = "warn"
|
||
|
|
rust-2024-guarded-string-incompatible-syntax = "warn"
|
||
|
|
rust-2024-incompatible-pat = "warn"
|
||
|
|
rust-2024-prelude-collisions = "warn"
|
||
|
|
unsafe-attr-outside-unsafe = "warn"
|
||
|
|
unsafe-op-in-unsafe-fn = "warn"
|
||
|
|
unsafe_code = "deny"
|
||
|
|
unstable_features = "warn"
|
||
|
|
unused-lifetimes = "warn"
|
||
|
|
unused-macro-rules = "warn"
|
||
|
|
unused_extern_crates = "warn"
|
||
|
|
unused_import_braces = "warn"
|
||
|
|
|
||
|
|
[lints.rust.unexpected_cfgs]
|
||
|
|
level = "warn"
|
||
|
|
priority = 0
|
||
|
|
check-cfg = ["cfg(fuzzing)"]
|