Skip to content

Commit

Permalink
Move the nightly install to build-api.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
coltonhurst committed Mar 22, 2024
1 parent 0b5980f commit 567f1db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions README.md
Expand Up @@ -76,13 +76,6 @@ ASPNETCORE_ENVIRONMENT=development dotnet swagger tofile --output ../../identity

### OpenApi Generator

Make sure you have the nightly toolchain installed with `rustup`. We need this to run
`cargo +nightly fmt` in the `build-api.sh` script below.

```bash
rustup toolchain install nightly
```

To generate a new version of the bindings run the following script from the root of the SDK project.

```bash
Expand All @@ -93,6 +86,8 @@ This project uses customized templates which lives in the `support/openapi-templ
These templates resolves some outstanding issues we've experienced with the rust generator. But we
strive towards modifying the templates as little as possible to ease future upgrades.

Note: If you don't have the nightly toolchain installed, the `build-api.sh` script will install it for you.

## Tests

Many of the SDK tests are based on encrypted data provided by the other Bitwarden clients. In order
Expand Down
1 change: 1 addition & 0 deletions support/build-api.sh
Expand Up @@ -22,5 +22,6 @@ npx openapi-generator-cli generate \
-t ./support/openapi-template \
--additional-properties=packageVersion=1.0.0

rustup toolchain install nightly
cargo +nightly fmt
npm run prettier

0 comments on commit 567f1db

Please sign in to comment.