# 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 = "opa" version = "0.9.0" description = "Unofficial SDK library for Open Policy Agent" homepage = "https://github.com/tamasfe/opa-rs" license = "MIT" repository = "https://github.com/tamasfe/opa-rs" resolver = "1" [[test]] name = "wasm" required-features = [ "bundle", "wasmtime-cranelift", ] [[bench]] name = "bench_wasm_eval" harness = false required-features = [ "bundle", "wasmtime-cranelift", ] [dependencies.anyhow] version = "1.0.52" [dependencies.bytes] version = "1.1.0" [dependencies.flate2] version = "1.0.22" optional = true [dependencies.reqwest] version = "0.11.8" features = ["json"] optional = true [dependencies.serde] version = "1.0.133" features = ["derive"] [dependencies.serde_json] version = "1.0.74" [dependencies.tar] version = "0.4.38" optional = true [dependencies.tempfile] version = "3.3.0" optional = true [dependencies.thiserror] version = "1.0.30" [dependencies.url] version = "2.2.2" optional = true [dependencies.uuid] version = ">=0.8.2" features = ["serde"] optional = true [dependencies.walkdir] version = "2.3.2" optional = true [dependencies.wasmtime] version = "3.0.0" optional = true default-features = false [dependencies.which] version = "4.2.4" optional = true [dev-dependencies.criterion] version = "0.4.0" [features] build = [ "dep:which", "dep:walkdir", "dep:tempfile", ] bundle = [ "dep:flate2", "dep:tar", ] default = [ "bundle", "build", "wasmtime-aot", "wasmtime-cranelift", ] http = [ "dep:reqwest", "dep:url", "dep:uuid", ] wasmtime-aot = [ "bundle", "dep:wasmtime", ] wasmtime-cranelift = [ "dep:wasmtime", "wasmtime?/cranelift", ]