nf-ndc-connect-public 0.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- nf_ndc_connect_public-0.2.1/.github/workflows/release.yml +86 -0
- nf_ndc_connect_public-0.2.1/.gitignore +21 -0
- nf_ndc_connect_public-0.2.1/.python-version +1 -0
- nf_ndc_connect_public-0.2.1/Cargo.lock +635 -0
- nf_ndc_connect_public-0.2.1/Cargo.toml +23 -0
- nf_ndc_connect_public-0.2.1/Justfile +50 -0
- nf_ndc_connect_public-0.2.1/PKG-INFO +12 -0
- nf_ndc_connect_public-0.2.1/README.md +3 -0
- nf_ndc_connect_public-0.2.1/flake.lock +96 -0
- nf_ndc_connect_public-0.2.1/flake.nix +78 -0
- nf_ndc_connect_public-0.2.1/new-jwt.json +109 -0
- nf_ndc_connect_public-0.2.1/pyproject.toml +21 -0
- nf_ndc_connect_public-0.2.1/requirements-dev.lock +12 -0
- nf_ndc_connect_public-0.2.1/requirements.lock +12 -0
- nf_ndc_connect_public-0.2.1/scripts/bump.py +58 -0
- nf_ndc_connect_public-0.2.1/src/lib.rs +264 -0
- nf_ndc_connect_public-0.2.1/test.html +95 -0
- nf_ndc_connect_public-0.2.1/test.py +50 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
name: Release & Publish
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- 'v*' # Triggers only on version tags, e.g., v0.1.0
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
# ============================================================================
|
|
13
|
+
# 1. RUST (CRATES.IO)
|
|
14
|
+
# ============================================================================
|
|
15
|
+
publish-crate:
|
|
16
|
+
name: Publish to Crates.io
|
|
17
|
+
runs-on: ubuntu-latest
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Setup Rust Toolchain
|
|
22
|
+
uses: dtolnay/rust-toolchain@stable
|
|
23
|
+
|
|
24
|
+
- name: Publish to Crates.io
|
|
25
|
+
env:
|
|
26
|
+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
|
27
|
+
# We publish with default features (Pure Rust)
|
|
28
|
+
run: cargo publish
|
|
29
|
+
|
|
30
|
+
# ============================================================================
|
|
31
|
+
# 2. PYTHON (PYPI)
|
|
32
|
+
# ============================================================================
|
|
33
|
+
publish-pypi:
|
|
34
|
+
name: Publish to PyPI
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
|
|
39
|
+
- name: Publish to PyPI
|
|
40
|
+
uses: messense/maturin-action@v1
|
|
41
|
+
with:
|
|
42
|
+
# This automatically reads pyproject.toml
|
|
43
|
+
# and builds wheels for Linux, macOS, and Windows
|
|
44
|
+
command: publish
|
|
45
|
+
args: --non-interactive --skip-existing --features python
|
|
46
|
+
env:
|
|
47
|
+
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
|
|
48
|
+
|
|
49
|
+
# ============================================================================
|
|
50
|
+
# 3. WASM / NODE (NPM)
|
|
51
|
+
# ============================================================================
|
|
52
|
+
publish-npm:
|
|
53
|
+
name: Publish to NPM
|
|
54
|
+
runs-on: ubuntu-latest
|
|
55
|
+
steps:
|
|
56
|
+
- uses: actions/checkout@v4
|
|
57
|
+
|
|
58
|
+
- name: Setup Rust Toolchain
|
|
59
|
+
uses: dtolnay/rust-toolchain@stable
|
|
60
|
+
with:
|
|
61
|
+
targets: wasm32-unknown-unknown
|
|
62
|
+
|
|
63
|
+
- name: Install wasm-pack
|
|
64
|
+
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
65
|
+
|
|
66
|
+
- name: Setup Node.js
|
|
67
|
+
uses: actions/setup-node@v4
|
|
68
|
+
with:
|
|
69
|
+
node-version: '20'
|
|
70
|
+
registry-url: 'https://registry.npmjs.org'
|
|
71
|
+
|
|
72
|
+
# Build specifically for Node.js usage (or 'bundler' for webpack)
|
|
73
|
+
# We add --scope to ensure it matches your npm username/org
|
|
74
|
+
- name: Build Wasm Package
|
|
75
|
+
run: |
|
|
76
|
+
wasm-pack build \
|
|
77
|
+
--target web \
|
|
78
|
+
--scope dhilipsiva \
|
|
79
|
+
-- \
|
|
80
|
+
--features wasm
|
|
81
|
+
|
|
82
|
+
# wasm-pack generates a pkg/ directory. We publish that.
|
|
83
|
+
- name: Publish to NPM
|
|
84
|
+
run: cd pkg && npm publish --access public
|
|
85
|
+
env:
|
|
86
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Generated by Cargo
|
|
2
|
+
# will have compiled files and executables
|
|
3
|
+
debug
|
|
4
|
+
target
|
|
5
|
+
|
|
6
|
+
# These are backup files generated by rustfmt
|
|
7
|
+
**/*.rs.bk
|
|
8
|
+
|
|
9
|
+
# MSVC Windows builds of rustc generate these, which store debugging information
|
|
10
|
+
*.pdb
|
|
11
|
+
|
|
12
|
+
# Generated by cargo mutants
|
|
13
|
+
# Contains mutation testing data
|
|
14
|
+
**/mutants.out*/
|
|
15
|
+
|
|
16
|
+
# RustRover
|
|
17
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
18
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
19
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
20
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
21
|
+
#.idea/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.13.0
|