This commit is contained in:
nora 2024-07-06 22:35:11 +02:00
commit bce268cceb
13 changed files with 672 additions and 0 deletions

View file

@ -0,0 +1,34 @@
{
"cargo-features": ["public-dependency"],
"package": {
"name": "std",
"version": "0.0.0",
"metadata": { "fortanix-sgx": { "threads": 125, "heap_size": 134217728 } }
},
"lib": { "crate-type": ["dylib", "rlib"] },
"dependencies": {
"alloc": { "path": "../alloc", "public": true },
"something": "1.2.0",
"std_detect": {
"path": "../stdarch/crates/std_detect",
"default-features": false,
"features": ["rustc-dep-of-std"]
},
"target": {
"cfg(not(all(windows, target_env = \"msvc\", not(target_vendor = \"uwp\"))))": {
"dependencies": {
"miniz_oxide": {
"version": "0.7.0",
"optional": true,
"default-features": false
}
}
}
}
},
"features": {
"backtrace": ["gimli-symbolize", "miniz_oxide/rustc-dep-of-std"],
"gimli-symbolize": []
},
"bench": [{ "name": "stdbenches", "path": "benches/lib.rs", "test": true }]
}

View file

@ -0,0 +1,37 @@
# github.com/rust-lang/rust:library/std/Cargo.toml
cargo-features = ["public-dependency"]
[package]
name = "std"
version = "0.0.0"
[lib]
crate-type = ["dylib", "rlib"]
[dependencies]
alloc = { path = "../alloc", public = true }
something = "1.2.0"
std_detect = { path = "../stdarch/crates/std_detect", default-features = false, features = ['rustc-dep-of-std'] }
[target.'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))'.dependencies]
miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
[features]
backtrace = [
"gimli-symbolize",
'miniz_oxide/rustc-dep-of-std',
]
gimli-symbolize = []
[package.metadata.fortanix-sgx]
# Maximum possible number of threads when testing
threads = 125
# Maximum heap size
heap_size = 0x8000000
[[bench]]
name = "stdbenches"
path = "benches/lib.rs"
test = true

View file

@ -0,0 +1,38 @@
cargo-features: [public-dependency]
package:
name: std
version: "0.0.0"
metadata:
fortanix-sgx:
threads: 125
heap_size: 0x8000000
lib:
crate-type:
- dylib
- rlib
dependencies:
alloc:
path: ../alloc
public: true
something: "1.2.0"
std_detect:
path: ../stdarch/crates/std_detect
default-features: false
features: [rustc-dep-of-std]
target:
'cfg(not(all(windows, target_env = "msvc", not(target_vendor = "uwp"))))':
dependencies:
miniz_oxide:
version: "0.7.0"
optional: true
default-features: false
features:
backtrace:
- gimli-symbolize
- miniz_oxide/rustc-dep-of-std
gimli-symbolize: []
bench:
- name: stdbenches
path: benches/lib.rs
test: true