rustledger-wasm 0.21.0

Beancount WebAssembly bindings for JavaScript/TypeScript
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.96"
name = "rustledger-wasm"
version = "0.21.0"
authors = ["Rustledger Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Beancount WebAssembly bindings for JavaScript/TypeScript"
homepage = "https://rustledger.github.io"
readme = "README.md"
keywords = [
    "beancount",
    "accounting",
    "finance",
    "double-entry",
    "ledger",
]
categories = [
    "command-line-utilities",
    "finance",
    "parser-implementations",
]
license = "GPL-3.0-only"
repository = "https://github.com/rustledger/rustledger"

[package.metadata.wasm-pack.profile.release]
wasm-opt = [
    "-O3",
    "--enable-mutable-globals",
    "--enable-bulk-memory",
    "--enable-nontrapping-float-to-int",
]

[package.metadata.wasm-pack.profile.dev]
wasm-opt = false

[features]
completions = []
default = [
    "plugins",
    "completions",
]
json-schema = ["dep:schemars"]
plugins = ["dep:rustledger-plugin"]
ts-export = ["dep:ts-rs"]

[lib]
name = "rustledger_wasm"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

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

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

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

[dependencies.console_error_panic_hook]
version = "0.1"

[dependencies.getrandom]
version = "0.2"
features = ["js"]

[dependencies.jiff]
version = "0.2"
features = [
    "serde",
    "js",
]

[dependencies.rkyv]
version = "0.8"

[dependencies.rustledger-booking]
version = "0.21.0"

[dependencies.rustledger-completion]
version = "0.21.0"

[dependencies.rustledger-core]
version = "0.21.0"

[dependencies.rustledger-loader]
version = "0.21.0"

[dependencies.rustledger-parser]
version = "0.21.0"

[dependencies.rustledger-plugin]
version = "0.21.0"
optional = true
default-features = false

[dependencies.rustledger-query]
version = "0.21.0"

[dependencies.rustledger-validate]
version = "0.21.0"

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde-wasm-bindgen]
version = "0.6"

[dependencies.sha2]
version = "0.11"

[dependencies.wasm-bindgen]
version = "0.2"

[dev-dependencies.js-sys]
version = "0.3"

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.schemars]
version = "=1.2.1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dependencies.ts-rs]
version = "12.0.1"
optional = true

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rustledger-ffi-wasi]
version = "0.21.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.rustledger-plugin-types]
version = "0.21.0"

[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies.serde_json]
version = "1"

[target.wasm32-unknown-unknown.dependencies.getrandom_03]
version = "0.3"
features = ["wasm_js"]
package = "getrandom"

[lints.clippy]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
format_push_string = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
must_use_candidate = "allow"
option_if_let_else = "allow"
or_fun_call = "allow"
ptr_arg = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"

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

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

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

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

[lints.rust]
missing_docs = "warn"
unsafe_code = "deny"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = ["cfg(kani)"]