Skip to content
Merged
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
11 changes: 0 additions & 11 deletions cackle.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ allow_proc_macro = true
allow_unsafe = true

[pkg.serde]
allow_unsafe = true
allow_apis = [
"fs",
]
Expand Down Expand Up @@ -198,9 +197,6 @@ build.allow_apis = [
[pkg.twox-hash]
allow_unsafe = true

[pkg.stable_deref_trait]
allow_unsafe = true

[pkg.winnow]
allow_unsafe = true

Expand All @@ -222,18 +218,12 @@ allow_unsafe = true
[pkg.ruzstd]
allow_unsafe = true

[pkg.toml_edit]
allow_unsafe = true

[pkg.memchr]
allow_unsafe = true

[pkg.once_cell]
allow_unsafe = true

[pkg.addr2line]
allow_unsafe = true

[pkg.object]
allow_unsafe = true
build.allow_apis = [
Expand All @@ -257,7 +247,6 @@ test.sandbox.make_writable = [
"test_crates/custom_target_dir",
]
test.sandbox.allow_network = true
test.allow_unsafe = true

[pkg.clap_builder]
allow_apis = [
Expand Down
23 changes: 17 additions & 6 deletions src/config/built_in.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,17 @@ pub(crate) fn get_built_ins() -> BTreeMap<ApiName, ApiConfig> {
perm(
&[
"std::fs",
// Darwin is not yet supported
//"std::os::darwin::fs",
"std::os::linux::fs",
"std::os::unix::fs",
"std::os::unix::io",
"std::os::wasi::fs",
"std::os::wasi::io",
"std::os::windows::fs",
"std::os::windows::io",
// WASI is not yet supported
//"std::os::wasi::fs",
//"std::os::wasi::io",
// Windows is not yet supported
//"std::os::windows::fs",
//"std::os::windows::io",
"std::path",
Comment thread
XSpielinbox marked this conversation as resolved.
],
&[],
Expand All @@ -26,7 +30,12 @@ pub(crate) fn get_built_ins() -> BTreeMap<ApiName, ApiConfig> {
result.insert(
ApiName::from("net"),
perm(
&["std::net", "std::os::wasi::net", "std::os::windows::net"],
&[
"std::net",
"std::os::linux::net",
// Windows is not yet supported
//"std::os::windows::net",
],
&[],
),
);
Expand All @@ -39,8 +48,10 @@ pub(crate) fn get_built_ins() -> BTreeMap<ApiName, ApiConfig> {
perm(
&[
"std::process",
"std::os::linux::process",
"std::unix::process",
"std::windows::process",
// Windows is not yet supported
//"std::windows::process",
],
&["std::process::abort", "std::process::exit"],
),
Expand Down