Skip to content
Open
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
29 changes: 16 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ permissions:
jobs:
release-please:
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
release_created: ${{ steps.release.outputs.release_created }}
tag_name: ${{ steps.release.outputs.tag_name }}
Expand All @@ -29,6 +30,7 @@ jobs:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
Expand All @@ -46,6 +48,7 @@ jobs:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -79,7 +82,12 @@ jobs:
version: 0.13.0
- name: Install musl tools
if: contains(matrix.target, 'musl')
run: sudo apt-get update && sudo apt-get install -y musl-tools musl-dev
run: |
for i in 1 2 3; do
sudo apt-get update && sudo apt-get install -y musl-tools musl-dev && exit 0
sleep 10
done
exit 1
- run: npm ci
working-directory: bindings/nodejs
- run: npx napi build --platform --release --target ${{ matrix.target }}
Expand All @@ -93,6 +101,7 @@ jobs:
publish-nodejs:
needs: build-nodejs
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand Down Expand Up @@ -124,17 +133,7 @@ jobs:
esac
cp "$f" "$dest"
done
- name: Publish platform packages
working-directory: bindings/nodejs
shell: bash
run: |
for pkg in npm/*/package.json; do
dir=$(dirname "$pkg")
npm publish "./$dir" --access public
done
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish main package
- name: Publish main package (publishes platform packages via napi prepublish)
working-directory: bindings/nodejs
run: npm publish --access public
env:
Expand All @@ -144,6 +143,7 @@ jobs:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: jetli/wasm-pack-action@v0.4.0
Expand All @@ -162,6 +162,7 @@ jobs:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ${{ matrix.os }}
timeout-minutes: 20
environment: pypi
permissions:
id-token: write
Expand All @@ -174,13 +175,14 @@ jobs:
- uses: PyO3/maturin-action@v1
with:
command: publish
args: --non-interactive
args: --non-interactive --skip-existing
working-directory: bindings/python

build-ffi:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ${{ matrix.os }}
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -224,6 +226,7 @@ jobs:
- build-ffi
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.0.6"
".": "0.3.1"
}
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# Changelog

## [0.3.1](https://github.com/fullzer4/stdbr/compare/v0.3.0...v0.3.1) (2026-08-18)


### Bug Fixes

* **nodejs:** let napi prepublish handle platform publishes ([6ac6829](https://github.com/fullzer4/stdbr/commit/6ac682991b5f225ce2587ef20352595f6117e6ec))

## [0.3.0](https://github.com/fullzer4/stdbr/compare/v0.2.0...v0.3.0) (2026-08-18)


### ⚠ BREAKING CHANGES

* **nodejs:** restore @stdbr scoped npm package names ([#36](https://github.com/fullzer4/stdbr/issues/36))

### Bug Fixes

* **nodejs:** restore [@stdbr](https://github.com/stdbr) scoped npm package names ([#36](https://github.com/fullzer4/stdbr/issues/36)) ([2d19b45](https://github.com/fullzer4/stdbr/commit/2d19b459787e6a134f85c17d35eba8725fc4cf5f))

## [0.2.0](https://github.com/fullzer4/stdbr/compare/v0.1.0...v0.2.0) (2026-08-18)


### ⚠ BREAKING CHANGES

* **nodejs:** restore @stdbr scoped npm package names

### Bug Fixes

* **nodejs:** restore [@stdbr](https://github.com/stdbr) scoped npm package names ([004d984](https://github.com/fullzer4/stdbr/commit/004d984f68c106dfa7a917c773726b890b316ded))

## [0.1.0](https://github.com/fullzer4/stdbr/compare/v0.0.7...v0.1.0) (2026-08-18)


### ⚠ BREAKING CHANGES

* **nodejs:** rename npm packages from @stdbr/* scope to unscoped stdbr*

### Bug Fixes

* **nodejs:** rename npm packages from @stdbr/* scope to unscoped stdbr* ([ecc4bf2](https://github.com/fullzer4/stdbr/commit/ecc4bf2f3f6993117dfe4c385b0f461dc4a3afc7))

## [0.0.7](https://github.com/fullzer4/stdbr/compare/v0.0.6...v0.0.7) (2026-08-18)


### Bug Fixes

* **release:** add --skip-existing to maturin publish to tolerate duplicate sdist uploads across matrix jobs ([78aec21](https://github.com/fullzer4/stdbr/commit/78aec21e5f508465618f111566bf53c1e346ebc4))

## [0.0.6](https://github.com/fullzer4/stdbr/compare/v0.0.5...v0.0.6) (2026-08-17)


Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stdbr"
version = "0.0.6"
version = "0.3.1"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
Expand All @@ -12,7 +12,7 @@ keywords.workspace = true
categories.workspace = true

[dependencies]
stdbr-core = { path = "core", version = "0.0.6" }
stdbr-core = { path = "core", version = "0.3.1" }

[workspace]
resolver = "2"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ One Rust codebase (`no_std` + `alloc`), five modules, four binding targets. Same
| Target | Package | Via |
|--------|---------|-----|
| Rust | [![crates.io](https://img.shields.io/crates/v/stdbr.svg?label=stdbr)](https://crates.io/crates/stdbr) | direct |
| Node.js | [![npm](https://img.shields.io/badge/npm-@stdbr/stdbr-CB3837?logo=npm)](https://github.com/fullzer4/stdbr/tree/main/bindings/nodejs) | napi-rs |
| Node.js | [![npm](https://img.shields.io/npm/v/@stdbr/stdbr.svg?label=@stdbr/stdbr)](https://www.npmjs.com/package/@stdbr/stdbr) | napi-rs |
| Python | [![PyPI](https://img.shields.io/pypi/v/stdbr.svg?label=stdbr)](https://pypi.org/project/stdbr/) | PyO3 |
| WASM | [![npm](https://img.shields.io/npm/v/stdbr-wasm.svg?label=stdbr-wasm)](https://www.npmjs.com/package/stdbr-wasm) | wasm-bindgen |
| C/C++ | [![GitHub tag](https://img.shields.io/github/v/tag/fullzer4/stdbr.svg?label=stdbr-ffi)](https://github.com/fullzer4/stdbr/releases) | `extern "C"` |
Expand Down
2 changes: 1 addition & 1 deletion bindings/ffi-c/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stdbr-ffi"
version = "0.0.6"
version = "0.3.1"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion bindings/nodejs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stdbr-napi"
version = "0.0.6"
version = "0.3.1"
edition.workspace = true
rust-version.workspace = true
license.workspace = true
Expand Down
5 changes: 4 additions & 1 deletion bindings/nodejs/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stdbr/stdbr-darwin-arm64",
"version": "0.0.6",
"version": "0.3.1",
"os": [
"darwin"
],
Expand All @@ -11,5 +11,8 @@
"license": "MIT OR Apache-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "public"
}
}
5 changes: 4 additions & 1 deletion bindings/nodejs/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stdbr/stdbr-darwin-x64",
"version": "0.0.6",
"version": "0.3.1",
"os": [
"darwin"
],
Expand All @@ -11,5 +11,8 @@
"license": "MIT OR Apache-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "public"
}
}
5 changes: 4 additions & 1 deletion bindings/nodejs/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stdbr/stdbr-linux-arm64-gnu",
"version": "0.0.6",
"version": "0.3.1",
"os": [
"linux"
],
Expand All @@ -14,5 +14,8 @@
"license": "MIT OR Apache-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "public"
}
}
5 changes: 4 additions & 1 deletion bindings/nodejs/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stdbr/stdbr-linux-x64-gnu",
"version": "0.0.6",
"version": "0.3.1",
"os": [
"linux"
],
Expand All @@ -14,5 +14,8 @@
"license": "MIT OR Apache-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "public"
}
}
5 changes: 4 additions & 1 deletion bindings/nodejs/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stdbr/stdbr-linux-x64-musl",
"version": "0.0.6",
"version": "0.3.1",
"os": [
"linux"
],
Expand All @@ -14,5 +14,8 @@
"license": "MIT OR Apache-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "public"
}
}
5 changes: 4 additions & 1 deletion bindings/nodejs/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@stdbr/stdbr-win32-x64-msvc",
"version": "0.0.6",
"version": "0.3.1",
"os": [
"win32"
],
Expand All @@ -11,5 +11,8 @@
"license": "MIT OR Apache-2.0",
"engines": {
"node": ">= 10"
},
"publishConfig": {
"access": "public"
}
}
Loading
Loading