Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: introduce cargo-workspace #54

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 31 additions & 24 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,47 @@
[package]
name = "extrasafe"
[workspace]
members = [
"extrasafe"
]
resolver = "2"

[workspace.package]
version = "0.5.1"
authors = [
"Harry Stern <[email protected]>",
]
edition = "2021"
authors = ["Harry Stern <[email protected]>",]
description = "Make your code extrasafe by reducing what it can access."
rust-version = "1.74.0"
repository = "https://github.com/boustrophedon/extrasafe"
license = "MIT"
keywords = ["security", "seccomp", "landlock", "syscall"]
categories = ["os::linux-apis"]
categories = [ "os::linux-apis" ]

[package.metadata.docs.rs]
[workspace.package.metadata.docs.rs]
all-features = true

[features]
landlock = ["dep:landlock"]
isolate = []

[dependencies]
seccompiler = { version = "^0.4", default-features = false }
libc = "^0.2"
syscalls = { version = "^0.6", default-features = false }
landlock = { version ="^0.3", optional = true }

[dev-dependencies]
[workspace.dependencies]
bytes = "^1"
crossbeam = "^0.8"
crossbeam-queue = "^0.3"
crossbeam-channel = "^0.5"
landlock = "^0.3"
libc = "^0.2"
rusqlite = "^0.32"
tempfile = "^3"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tokio = "^1.15"
hyper = { version = "^0.14", features = ["http1", "server", "runtime", "tcp"] }
warp = "^0.3"
rusqlite = "^0.26"

[target.'cfg(target_env = "musl")'.dev-dependencies]
reqwest = { version = "^0.11", default-features = false, features = ["rustls-tls"] }
[workspace.dependencies.hyper]
version = "^0.14"
features = [ "http1", "server", "runtime", "tcp" ]

[workspace.dependencies.reqwest]
version = "^0.11"
default-features = false

[workspace.dependencies.seccompiler]
version = "^0.4"
default-features = false

[target.'cfg(not(target_env = "musl"))'.dev-dependencies]
reqwest = { version = "^0.11" }
[workspace.dependencies.syscalls]
version = "^0.6"
default-features = false
Loading
Loading