diff --git a/CHANGELOG.md b/CHANGELOG.md index ff3cb3a3..d7a36ea2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ All notable changes to Cyber Code are recorded here. The format follows [Keep a ## [Unreleased] -The first release is in preparation. It will contain: +## [0.1.0-beta.1] - 2026-11-11 + +The first public pre-release, for macOS and Linux. It contains: ### Added diff --git a/Cargo.lock b/Cargo.lock index 6913fe6a..2bbdede9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -954,7 +954,7 @@ dependencies = [ [[package]] name = "cyber-account" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "aws-lc-rs", "axum", @@ -981,7 +981,7 @@ dependencies = [ [[package]] name = "cyber-app" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "aws-lc-rs", "axum", @@ -1027,7 +1027,7 @@ dependencies = [ [[package]] name = "cyber-cli" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "aws-lc-rs", "axum", @@ -1079,7 +1079,7 @@ dependencies = [ [[package]] name = "cyber-client" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "axum", "chrono", @@ -1098,7 +1098,7 @@ dependencies = [ [[package]] name = "cyber-collab" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "aws-lc-rs", "axum", @@ -1135,7 +1135,7 @@ dependencies = [ [[package]] name = "cyber-computer" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "cc", "schemars", @@ -1148,7 +1148,7 @@ dependencies = [ [[package]] name = "cyber-core" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "aho-corasick", "cap-fs-ext", @@ -1183,7 +1183,7 @@ dependencies = [ [[package]] name = "cyber-install" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "base64 0.22.1", "cyber-core", @@ -1205,7 +1205,7 @@ dependencies = [ [[package]] name = "cyber-llm" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "base64 0.22.1", "bytes", @@ -1226,7 +1226,7 @@ dependencies = [ [[package]] name = "cyber-sandbox" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "base64 0.22.1", "cap-fs-ext", @@ -1248,7 +1248,7 @@ dependencies = [ [[package]] name = "cyber-server" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "axum", "base64 0.22.1", @@ -1296,7 +1296,7 @@ dependencies = [ [[package]] name = "cyber-snapshot" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "blake3", "cap-fs-ext", @@ -1319,7 +1319,7 @@ dependencies = [ [[package]] name = "cyber-store" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "crossbeam-channel", "cyber-core", @@ -1333,7 +1333,7 @@ dependencies = [ [[package]] name = "cyber-telemetry" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "chrono", "cyber-core", @@ -1352,7 +1352,7 @@ dependencies = [ [[package]] name = "cyber-tools" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "axum", "base64 0.22.1", @@ -1404,7 +1404,7 @@ dependencies = [ [[package]] name = "cyber-tui" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "aws-lc-rs", "axum", @@ -1439,7 +1439,7 @@ dependencies = [ [[package]] name = "cyber-workflow" -version = "0.1.0" +version = "0.1.0-beta.1" dependencies = [ "futures", "jsonschema", diff --git a/Cargo.toml b/Cargo.toml index c21afaca..93fb6172 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -21,7 +21,7 @@ members = [ ] [workspace.package] -version = "0.1.0" +version = "0.1.0-beta.1" edition = "2024" license = "Apache-2.0" repository = "https://github.com/CyberdyneCorp/cybercode-cli" diff --git a/crates/cyber-cli/src/main.rs b/crates/cyber-cli/src/main.rs index 47b558c8..f4c8a55d 100644 --- a/crates/cyber-cli/src/main.rs +++ b/crates/cyber-cli/src/main.rs @@ -1,5 +1,11 @@ //! The `cyber` binary. +// On macOS ld64 reports that this binary's unwind tables exceed the 16 MiB +// compact-unwind limit and that the overflow uses DWARF unwind info instead. That is +// harmless (panics still unwind), and `-no_compact_unwind` would break unwinding on +// arm64, so the message is not shown on every build. +#![allow(linker_messages)] + mod cli; mod cli_docs; mod commands; diff --git a/crates/cyber-cli/tests/cli.rs b/crates/cyber-cli/tests/cli.rs index 799fb7ba..46972675 100644 --- a/crates/cyber-cli/tests/cli.rs +++ b/crates/cyber-cli/tests/cli.rs @@ -67,7 +67,9 @@ fn version_has_semver_channel_sha_and_target() { let line = stdout(&o); let parts: Vec<&str> = line.trim().splitn(3, ' ').collect(); assert_eq!(parts[0], "cyber"); - assert_eq!(parts[1].split('.').count(), 3, "{line}"); + // Regression: a pre-release (`0.1.0-beta.1`) has dots in its suffix too. + let core = parts[1].split_once('-').map_or(parts[1], |(core, _)| core); + assert_eq!(core.split('.').count(), 3, "{line}"); assert!( parts[2].starts_with('(') && parts[2].ends_with(')') && parts[2].matches(", ").count() == 2, "{line}" diff --git a/crates/cyber-sandbox/build.rs b/crates/cyber-sandbox/build.rs index aa308ae7..9465dca8 100644 --- a/crates/cyber-sandbox/build.rs +++ b/crates/cyber-sandbox/build.rs @@ -11,9 +11,7 @@ fn main() { build.flag("-Wall").flag("-Wextra").flag("-Werror"); match std::env::var("CARGO_CFG_TARGET_OS").as_deref() { Ok("macos") => { - build - .file("native/macos_plugin_exec.c") - .flag("-Wno-error=deprecated-declarations"); + build.file("native/macos_plugin_exec.c"); } Ok("linux") => { build.file("native/linux_plugin_exec.c"); diff --git a/crates/cyber-sandbox/native/macos_plugin_exec.c b/crates/cyber-sandbox/native/macos_plugin_exec.c index 06d30ed6..1e62586f 100644 --- a/crates/cyber-sandbox/native/macos_plugin_exec.c +++ b/crates/cyber-sandbox/native/macos_plugin_exec.c @@ -34,9 +34,14 @@ int cyber_plugin_exec(int argc, const char *const argv[]) { close(fd); if (strlen(profile) != size) { free(profile); return 2; } char *error = NULL; + /* Seatbelt's only C entry point is marked deprecated (macOS 10.8) but still + * ships and is what sandbox-exec uses; silence that one warning here only. */ +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" int result = sandbox_init(profile, 0, &error); free(profile); sandbox_free_error(error); +#pragma clang diagnostic pop if (result != 0) return 2; } /* Kernel exec-time closure covers descriptors above a lowered soft limit.