Cargo Features

[dependencies]
rings-node = { version = "0.7.0", default-features = false, features = ["snark", "ffi", "node_default", "node", "browser_default", "browser", "browser_chrome_test", "console_error_panic_hook"] }
default = node_default

The node_default feature is set by default whenever rings-node is added without default-features = false somewhere in the dependency tree.

snark browser_default? node_default = rings-snark

Affects backend::snark, types::snark, snark::SNARKTask

ffi = cbindgen, node

Affects backend::ffi, provider::ffi

node_default default = node, snark
node ffi? node_default = async-stream, backtrace, clap, form_urlencoded, home, hyper, lazy_static, pin-project, reqwest, tokio, tokio-util, tower-http, wasmer-types

Enables wasmer ^4.2.5, rings-core and rings-derive, headers and ws of axum ^0.6.10, std of rings-rpc, native-webrtc of rings-transport

Affects backend::native, rings-node::native, logging::node, tests::native, util::expand_home, util::ensure_parent_dir, util::loader

Required by the rings binary

browser_default browser_chrome_test? = browser, snark
browser browser_default? = backtrace, clap, js-sys, lazy_static, reqwest-wasm, serde-wasm-bindgen, tracing-wasm, wasm-bindgen, wasm-bindgen-futures

Enables web-sys-webrtc of rings-transport, js-default of wasmer ^4.2.5, wasm of rings-core, rings-derive, and rings-rpc

Affects backend::browser, snark::browser, logging::browser, measure::MeasureStorage, provider::browser, provider::AsyncSigner, tests::wasm

browser_chrome_test = browser_default

run unittest with snark

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

rings-core browser? node?
rings-derive browser? node?
rings-rpc browser? node?
rings-snark snark?
wasmer browser? node?

Enables wasmer ^4.2.5

wasmer-types node?

Enables wasmer-types ^3.3.0

async-stream node?

Enables async-stream

node

axum node?

Enables axum ^0.6.10

backtrace browser? node?
clap browser? node?
form_urlencoded node?
home node?
hyper node?

Enables hyper ^0.14.25

lazy_static browser? node?
pin-project node?
reqwest node?

Enables reqwest ^0.11

tokio node?
tokio-util node?
tower-http node?

Enables tower-http ^0.3.4

console_error_panic_hook implicit feature

Enables console_error_panic_hook

browser

js-sys browser?
reqwest-wasm browser?
serde-wasm-bindgen browser?
tracing-wasm browser?
wasm-bindgen browser?
wasm-bindgen-futures browser?
cbindgen build ffi?

Enables cbindgen ^0.24.0