diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7b00b5d4ac..ef46de551a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,4 +6,10 @@ repos: entry: python3 agentydragon/tools/check_task_frontmatter.py language: python additional_dependencies: [PyYAML] - files: ^agentydragon/tasks/[0-9]{2}-.*\.md$ \ No newline at end of file + files: ^agentydragon/tasks/[0-9]{2}-.*\.md$ + - id: cargo-build + name: Check Rust workspace builds + entry: bash -lc 'cd codex-rs && cargo build --workspace --locked' + language: system + pass_filenames: false + require_serial: true \ No newline at end of file diff --git a/codex-rs/README.md b/codex-rs/README.md index 9b18dda624..30b13c0eb2 100644 --- a/codex-rs/README.md +++ b/codex-rs/README.md @@ -11,8 +11,19 @@ npm i -g @openai/codex@native codex ``` -You can also download a platform-specific release directly from our [GitHub Releases](https://github.com/openai/codex/releases). +You can also build and install the Rust-native binary from source: +```shell +cargo install --path cli --locked +``` + +By default this installs into `$HOME/.cargo/bin`, so make sure that's on your `PATH`. To install system-wide (e.g. to `/usr/local`), run: + +```shell +sudo cargo install --path cli --locked --root /usr/local +``` + +You can also download a platform-specific release directly from our [GitHub Releases](https://github.com/openai/codex/releases). ## What's new in the Rust CLI While we are [working to close the gap between the TypeScript and Rust implementations of Codex CLI](https://github.com/openai/codex/issues/1262), note that the Rust CLI has a number of features that the TypeScript CLI does not!