xous-core/xous-rs/Cargo.toml
Sean Cross b17be29195 xous: make processes-as-threads a feature flag
The test module uses this feature to avoid having to spawn external
processes. Make this a feature flag since it doesn't make sense for any
other target.

Signed-off-by: Sean Cross <sean@xobs.io>
2021-08-16 12:16:27 +08:00

43 lines
1.3 KiB
TOML

[package]
name = "xous"
version = "0.8.3"
authors = ["Sean Cross <sean@xobs.io>"]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "System call interface for Xous"
repository = "https://github.com/betrusted-io/xous-core/"
homepage = "https://betrusted.io/"
[dependencies]
bitflags = {version = "1", optional = true }
xous-macros = { path = "../macros", version = "0.1.0", optional = true }
log = { version = "0.4", optional = true }
core = { version = '1.0.0', optional = true, package = 'rustc-std-workspace-core' }
compiler_builtins = { version = '0.1.0', optional = true }
[features]
# If this is set, then the "Drop" feature of MemoryMessage structs
# will not be implemented. This should only be set by the kernel.
forget-memory-messages = []
# Enable using `bitflags`
bit-flags = ["bitflags"]
# `logging` causes this program to connect to a log server on startup
# so you can run log commands such as `info!()`.
logging = ["log"]
# This is being built as part of libstd
rustc-dep-of-std = ['core', 'compiler_builtins/rustc-dep-of-std']
# Processes and threads will all be subthreads. This is useful for kernel
# testing.
processes-as-threads = []
default = ["bit-flags", "xous-macros"]
[target.'cfg(any(windows,unix))'.dependencies]
lazy_static = "1.4"
hex = "0.4"
debug-here = "*"