mirror of
https://github.com/microsoft/regorus.git
synced 2026-08-05 02:16:11 +00:00
33 lines
1.2 KiB
TOML
33 lines
1.2 KiB
TOML
[package]
|
|
name = "regorusjs"
|
|
version = "0.2.2"
|
|
edition = "2021"
|
|
repository = "https://github.com/microsoft/regorus/bindings/wasm"
|
|
description = "WASM bindings for Regorus - a fast, lightweight Rego interpreter written in Rust"
|
|
keywords = ["interpreter", "opa", "policy-as-code", "rego"]
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
[lib]
|
|
crate-type = ["cdylib"]
|
|
|
|
[features]
|
|
default = ["ast", "coverage", "regorus/std", "regorus/full-opa"]
|
|
ast = ["regorus/ast"]
|
|
coverage = ["regorus/coverage"]
|
|
|
|
[dependencies]
|
|
regorus = { path = "../..", default-features = false, features = ["arc"] }
|
|
serde_json = "1.0.140"
|
|
wasm-bindgen = "0.2.100"
|
|
# Specify uuid as a mandatory dependency so as to enable `js` feature which is now required
|
|
# when targeting wasm32-unknown-unknown.
|
|
uuid = { version = "1.15.1", default-features = false, features = ["v4", "fast-rng", "js"]}
|
|
# Enable wasm_js. See https://docs.rs/getrandom/latest/getrandom/#webassembly-support
|
|
getrandom = { version = "0.3", features = ["std", "wasm_js"] }
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3.40"
|
|
|
|
[lints.rust]
|
|
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(wasm_bindgen_unstable_test_coverage)'] }
|