Skip to content

Commit

Permalink
refactor: introduce cargo-workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
sivizius committed Oct 14, 2024
1 parent b56d18c commit 2880467
Show file tree
Hide file tree
Showing 45 changed files with 79 additions and 26 deletions.
56 changes: 30 additions & 26 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,40 +1,44 @@
[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"]

[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 }
categories = [ "os::linux-apis" ]

[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.26"
tempfile = "^3"
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
48 changes: 48 additions & 0 deletions extrasafe/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
[package]
name = "extrasafe"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
description = "Make your code extrasafe by reducing what it can access."
documentation = "https://docs.rs/extrasafe/latest/extrasafe"
readme = "README.md"
#homepage = ""
repository.workspace = true
license.workspace = true
keywords = [ "security", "seccomp", "landlock", "syscall" ]
categories.workspace = true

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

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

[dependencies]
libc.workspace = true
seccompiler.workspace = true
syscalls.workspace = true

# Optional Dependencies:
landlock = { workspace = true, optional = true }

[dev-dependencies]
bytes.workspace = true
crossbeam.workspace = true
crossbeam-queue.workspace = true
crossbeam-channel.workspace = true
hyper.workspace = true
rusqlite.workspace = true
tempfile.workspace = true
tokio.workspace = true
warp.workspace = true

[target.'cfg(target_env = "musl")'.dev-dependencies.reqwest]
workspace = true
features = [ "rustls-tls" ]

[target.'cfg(not(target_env = "musl"))'.dev-dependencies.reqwest]
workspace = true
features = [ "default" ]
1 change: 1 addition & 0 deletions extrasafe/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# extrasafe
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 2880467

Please sign in to comment.