# 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.77"
name = "cbqn"
version = "0.2.1"
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Embed BQN in Rust via CBQN FFI"
homepage = "https://github.com/Detegr/cbqn-rs"
documentation = "https://detegr.github.io/cbqn-rs/cbqn"
readme = "README.md"
keywords = [
    "CBQN",
    "BQN",
    "APL",
    "array",
]
license = "GPL-3.0-only"
repository = "https://github.com/Detegr/cbqn-rs.git"

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

[dependencies.cbqn-sys]
version = "0.8.0"
default-features = false

[dependencies.parking_lot]
version = "0.12.1"

[dependencies.thiserror]
version = "1.0.40"

[dependencies.wasmer]
version = "4.0.0"
optional = true

[dependencies.wasmer-wasix]
version = "0.9.0"
optional = true

[features]
default = ["native-backend"]
native-backend = ["cbqn-sys/shared-object"]
wasi-backend = [
    "dep:wasmer",
    "dep:wasmer-wasix",
]