Skip to content

Commit 1347c28

Browse files
authored
chore: trust publish (#55)
1 parent 396ce62 commit 1347c28

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Publish to crates.io
2+
on:
3+
push:
4+
tags: ['v*'] # Triggers when pushing tags starting with 'v'
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
environment: release # Optional: for enhanced security
9+
permissions:
10+
id-token: write # Required for OIDC token exchange
11+
steps:
12+
- uses: actions/checkout@v5
13+
- uses: rust-lang/crates-io-auth-action@v1
14+
id: auth
15+
- run: cargo publish
16+
env:
17+
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cbor4ii"
3-
version = "1.2.0"
3+
version = "1.2.1"
44
authors = ["quininer <quininer@live.com>"]
55
description = "CBOR: Concise Binary Object Representation"
66
repository = "https://github.com/quininer/cbor4ii"

src/core/error.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ impl<E: core::error::Error + 'static> core::error::Error for EncodeError<E> {
190190
}
191191
}
192192

193+
#[cfg(target_pointer_width = "64")]
193194
#[test]
194195
fn test_error_type_size() {
195196
// bottom type

0 commit comments

Comments
 (0)