formawasm 0.0.1-beta

Backend that compiles a typed FormaLang IR module into a WebAssembly component.
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.93"
name = "formawasm"
version = "0.0.1-beta"
authors = ["Valentin Radu and formawasm contributors"]
build = false
include = [
    "/src/**/*",
    "/Cargo.toml",
    "/README.md",
    "/LICENSE-MIT",
    "/LICENSE-APACHE",
    "/CHANGELOG.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Backend that compiles a typed FormaLang IR module into a WebAssembly component."
homepage = "https://wasm.formalang.org"
documentation = "https://docs.rs/formawasm"
readme = "README.md"
keywords = [
    "compiler",
    "webassembly",
    "wasm",
    "component-model",
    "wit",
]
categories = [
    "compilers",
    "wasm",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/valentinradu/formawasm"

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

[features]
dwarf = ["dep:gimli"]
wasm-opt = [
    "dep:wasm-opt",
    "dep:tempfile",
]

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

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

[dependencies.formalang]
version = "0.0.5-beta"

[dependencies.gimli]
version = "0.32"
features = [
    "std",
    "write",
]
optional = true
default-features = false

[dependencies.tempfile]
version = "3"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tracing]
version = "0.1"

[dependencies.wasm-encoder]
version = "0.247"

[dependencies.wasm-opt]
version = "0.116"
optional = true

[dependencies.wasmparser]
version = "0.247"

[dependencies.wit-component]
version = "0.247"

[dependencies.wit-parser]
version = "0.247"

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

[dev-dependencies.wasmtime]
version = "44"

[lints.clippy]
allow_attributes = "deny"
arithmetic_side_effects = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
cast_possible_truncation = "deny"
cast_possible_wrap = "deny"
cast_precision_loss = "deny"
cast_sign_loss = "deny"
clone_on_ref_ptr = "warn"
dbg_macro = "deny"
error_impl_error = "warn"
exhaustive_enums = "warn"
exhaustive_structs = "warn"
exit = "deny"
expect_used = "deny"
fallible_impl_from = "warn"
format_push_string = "warn"
indexing_slicing = "warn"
integer_division = "deny"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
modulo_arithmetic = "deny"
must_use_candidate = "warn"
panic = "deny"
panic_in_result_fn = "deny"
print_stderr = "deny"
print_stdout = "deny"
redundant_pub_crate = "allow"
todo = "deny"
unimplemented = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
wildcard_enum_match_arm = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.rust]
dead_code = "warn"
missing_debug_implementations = "warn"
unreachable_pub = "deny"
unsafe_code = "forbid"
unused_must_use = "deny"

[lints.rustdoc]
broken_intra_doc_links = "deny"
missing_crate_level_docs = "warn"

[profile.dev]
debug = 2

[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
strip = "symbols"

[profile.test]
debug = "line-tables-only"