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
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
34 changes: 17 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions crates/cyber-cli/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
4 changes: 3 additions & 1 deletion crates/cyber-cli/tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down
4 changes: 1 addition & 3 deletions crates/cyber-sandbox/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
5 changes: 5 additions & 0 deletions crates/cyber-sandbox/native/macos_plugin_exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading