mod-trace 0.1.0__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.
@@ -0,0 +1,106 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+ workflow_dispatch:
8
+ inputs:
9
+ publish_pypi:
10
+ description: "Publish built distributions to PyPI via Trusted Publishing (OIDC)"
11
+ required: false
12
+ default: false
13
+ type: boolean
14
+
15
+ permissions:
16
+ contents: read
17
+
18
+ jobs:
19
+ build_dist:
20
+ name: Build distributions (${{ matrix.os }})
21
+ runs-on: ${{ matrix.os }}
22
+ strategy:
23
+ fail-fast: false
24
+ matrix:
25
+ os:
26
+ - ubuntu-latest
27
+ - macos-14
28
+ - windows-latest
29
+
30
+ steps:
31
+ - name: Checkout
32
+ uses: actions/checkout@v4
33
+
34
+ - name: Set up Python
35
+ uses: actions/setup-python@v5
36
+ with:
37
+ python-version: "3.11"
38
+
39
+ - name: Build wheel
40
+ uses: PyO3/maturin-action@v1
41
+ with:
42
+ command: build
43
+ args: --release -b bin --out dist
44
+ manylinux: auto
45
+
46
+ - name: Build sdist (Linux only)
47
+ if: runner.os == 'Linux'
48
+ uses: PyO3/maturin-action@v1
49
+ with:
50
+ command: sdist
51
+ args: --out dist
52
+
53
+ - name: Upload distribution artifacts
54
+ uses: actions/upload-artifact@v4
55
+ with:
56
+ name: dist-${{ matrix.os }}
57
+ path: dist/*
58
+ if-no-files-found: error
59
+
60
+ github_release:
61
+ name: Publish GitHub Release
62
+ runs-on: ubuntu-latest
63
+ needs: build_dist
64
+ if: startsWith(github.ref, 'refs/tags/v')
65
+ permissions:
66
+ contents: write
67
+
68
+ steps:
69
+ - name: Download all build artifacts
70
+ uses: actions/download-artifact@v4
71
+ with:
72
+ pattern: dist-*
73
+ path: dist
74
+ merge-multiple: true
75
+
76
+ - name: Create GitHub release
77
+ uses: softprops/action-gh-release@v2
78
+ with:
79
+ files: dist/*
80
+ generate_release_notes: true
81
+
82
+ pypi_publish:
83
+ name: Publish to PyPI
84
+ runs-on: ubuntu-latest
85
+ needs: build_dist
86
+ if: |
87
+ (github.event_name == 'workflow_dispatch' && github.event.inputs.publish_pypi == 'true') ||
88
+ startsWith(github.ref, 'refs/tags/v')
89
+ environment:
90
+ name: pypi
91
+ permissions:
92
+ id-token: write
93
+
94
+ steps:
95
+ - name: Download all build artifacts
96
+ uses: actions/download-artifact@v4
97
+ with:
98
+ pattern: dist-*
99
+ path: dist
100
+ merge-multiple: true
101
+
102
+ - name: Publish distributions
103
+ uses: pypa/gh-action-pypi-publish@release/v1
104
+ with:
105
+ packages-dir: dist
106
+ skip-existing: true
@@ -0,0 +1,8 @@
1
+ /target/
2
+ /dist/
3
+ /.venv/
4
+ .DS_Store
5
+ __pycache__/
6
+ models/
7
+ examples/*.cbm
8
+ examples/*.onnx
@@ -0,0 +1,107 @@
1
+ # This file is automatically @generated by Cargo.
2
+ # It is not intended for manual editing.
3
+ version = 4
4
+
5
+ [[package]]
6
+ name = "itoa"
7
+ version = "1.0.18"
8
+ source = "registry+https://github.com/rust-lang/crates.io-index"
9
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
10
+
11
+ [[package]]
12
+ name = "memchr"
13
+ version = "2.8.1"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "6b947ae49db0d222b1dbc6b113ce7248a3fc3a6ca21b696717bfc000ba4484d8"
16
+
17
+ [[package]]
18
+ name = "mod-trace"
19
+ version = "0.1.0"
20
+ dependencies = [
21
+ "serde",
22
+ "serde_json",
23
+ ]
24
+
25
+ [[package]]
26
+ name = "proc-macro2"
27
+ version = "1.0.106"
28
+ source = "registry+https://github.com/rust-lang/crates.io-index"
29
+ checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
30
+ dependencies = [
31
+ "unicode-ident",
32
+ ]
33
+
34
+ [[package]]
35
+ name = "quote"
36
+ version = "1.0.45"
37
+ source = "registry+https://github.com/rust-lang/crates.io-index"
38
+ checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
39
+ dependencies = [
40
+ "proc-macro2",
41
+ ]
42
+
43
+ [[package]]
44
+ name = "serde"
45
+ version = "1.0.228"
46
+ source = "registry+https://github.com/rust-lang/crates.io-index"
47
+ checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
48
+ dependencies = [
49
+ "serde_core",
50
+ "serde_derive",
51
+ ]
52
+
53
+ [[package]]
54
+ name = "serde_core"
55
+ version = "1.0.228"
56
+ source = "registry+https://github.com/rust-lang/crates.io-index"
57
+ checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
58
+ dependencies = [
59
+ "serde_derive",
60
+ ]
61
+
62
+ [[package]]
63
+ name = "serde_derive"
64
+ version = "1.0.228"
65
+ source = "registry+https://github.com/rust-lang/crates.io-index"
66
+ checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
67
+ dependencies = [
68
+ "proc-macro2",
69
+ "quote",
70
+ "syn",
71
+ ]
72
+
73
+ [[package]]
74
+ name = "serde_json"
75
+ version = "1.0.150"
76
+ source = "registry+https://github.com/rust-lang/crates.io-index"
77
+ checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
78
+ dependencies = [
79
+ "itoa",
80
+ "memchr",
81
+ "serde",
82
+ "serde_core",
83
+ "zmij",
84
+ ]
85
+
86
+ [[package]]
87
+ name = "syn"
88
+ version = "2.0.117"
89
+ source = "registry+https://github.com/rust-lang/crates.io-index"
90
+ checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
91
+ dependencies = [
92
+ "proc-macro2",
93
+ "quote",
94
+ "unicode-ident",
95
+ ]
96
+
97
+ [[package]]
98
+ name = "unicode-ident"
99
+ version = "1.0.24"
100
+ source = "registry+https://github.com/rust-lang/crates.io-index"
101
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
102
+
103
+ [[package]]
104
+ name = "zmij"
105
+ version = "1.0.21"
106
+ source = "registry+https://github.com/rust-lang/crates.io-index"
107
+ checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
@@ -0,0 +1,11 @@
1
+ [package]
2
+ name = "mod-trace"
3
+ version = "0.1.0"
4
+ edition = "2024"
5
+ description = "Rust CLI for inspecting ML model artifacts without loading the framework"
6
+ license = "MIT"
7
+ readme = "README.md"
8
+
9
+ [dependencies]
10
+ serde = { version = "1", features = ["derive"] }
11
+ serde_json = "1"
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Maria Dubyaga
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.