Skip to content

Commit

Permalink
fix: change readme to use stable rust toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyconover committed Jan 13, 2025
1 parent 0f03005 commit a41691b
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,38 +302,35 @@ For the DuckDB extension to call the Rust code a tool called `cbindgen` is used

The headers can be updated by running `make rust_binding_headers`.

#### Building on macOS
#### Building on MacOS X

Example setup + build steps for macOS users:

```sh
# Remove rust if previously installed via brew
# Remove rust if previously installed via brew
brew uninstall rust

# Install rustup + cbindgen
# (use rustup to switch versions of Rust without extra fuss)
brew install cbindgen rustup

# Install nightly rust toolchain
rustup toolchain install nightly
rustup toolchain install stable

# Initialize rustup
# Zsh users: customize installation, answer n to "Modify PATH variable?",
# and continue with defaults for everything else
rustup-init

# OPTIONAL step for zsh users: add rust + cargo env setup to zshrc:
echo '. "$HOME/.cargo/env"' >> ~/.zshrc
echo '. "$HOME/.cargo/env"' >> ~/.zshrc

# Use rustc nightly version by default
rustup default nightly
# Use rustc stable version by default
rustup default stable

# Build headers
make rust_binding_headers

# Using ninja for theorhetical parallel build steps (untested!)
# Set CMAKE_BUILD_PARALLEL_LEVEL to the number of cores on your machine
GEN=ninja CMAKE_BUILD_PARALLEL_LEVEL=8 make
GEN=ninja make
```

### Build steps
Expand Down

0 comments on commit a41691b

Please sign in to comment.