linera-witty 0.15.21

Generation of WIT compatible host code from Rust code
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 = "2021"
name = "linera-witty"
version = "0.15.21"
authors = ["Linera <contact@linera.io>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generation of WIT compatible host code from Rust code"
homepage = "https://linera.dev"
documentation = "https://docs.rs/linera-witty/latest/linera_witty/"
readme = "README.md"
license = "Apache-2.0"
repository = "https://github.com/linera-io/linera-protocol"

[features]
default = ["macros"]
log = ["dep:log"]
macros = ["linera-witty-macros"]
test = ["linera-witty-macros?/test"]
wasmer = [
    "dep:wasmer",
    "linera-witty-macros?/wasmer",
]
wasmtime = [
    "dep:wasmtime",
    "linera-witty-macros?/wasmtime",
]

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

[[test]]
name = "reentrancy"
path = "tests/reentrancy.rs"

[[test]]
name = "wit_export"
path = "tests/wit_export.rs"

[[test]]
name = "wit_import"
path = "tests/wit_import.rs"

[[test]]
name = "wit_load"
path = "tests/wit_load.rs"

[[test]]
name = "wit_store"
path = "tests/wit_store.rs"

[[test]]
name = "wit_type"
path = "tests/wit_type.rs"

[dependencies.anyhow]
version = "1.0.80"

[dependencies.either]
version = "1.10.0"

[dependencies.frunk]
version = "0.4.2"

[dependencies.linera-witty-macros]
version = "0.15.21"
optional = true

[dependencies.log]
version = "0.4.21"
optional = true

[dependencies.thiserror]
version = "1.0.65"

[dependencies.wasmer]
version = "4.4.0-linera.8"
optional = true
default-features = false
package = "linera-wasmer"

[dependencies.wasmtime]
version = "25.0.0"
features = [
    "cranelift",
    "runtime",
    "std",
]
optional = true
default-features = false

[dev-dependencies.assert_matches]
version = "1.5.0"

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

[dev-dependencies.test-case]
version = "3.3.1"

[dev-dependencies.tracing]
version = "0.1.40"
features = ["release_max_level_trace"]

[build-dependencies.cfg_aliases]
version = "0.2.1"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.wasmer]
version = "4.4.0-linera.8"
features = ["singlepass"]
optional = true
default-features = false
package = "linera-wasmer"

[target.wasm32-unknown-unknown.dependencies.wasmer]
version = "4.4.0-linera.8"
features = ["js-default"]
optional = true
default-features = false
package = "linera-wasmer"

[lints.clippy]
checked_conversions = "deny"
doc_link_with_quotes = "deny"
filter_map_next = "deny"
flat_map_option = "deny"
from_iter_instead_of_collect = "deny"
inefficient_to_string = "deny"
iter_filter_is_some = "deny"
iter_not_returning_iterator = "deny"
large_futures = "deny"
large_stack_arrays = "deny"
large_types_passed_by_value = "deny"
let_underscore_must_use = "deny"
let_underscore_untyped = "deny"
macro_use_imports = "deny"
manual_instant_elapsed = "deny"
manual_is_power_of_two = "deny"
manual_is_variant_and = "deny"
map_flatten = "deny"
map_unwrap_or = "deny"
mismatching_type_param_order = "deny"
naive_bytecount = "deny"
needless_collect = "deny"
non_std_lazy_statics = "deny"
or_fun_call = "deny"
range_minus_one = "deny"
range_plus_one = "deny"
ref_option_ref = "deny"
str_split_at_newline = "deny"
uninlined_format_args = "deny"
unnecessary_wraps = "deny"
used_underscore_binding = "deny"