znepro 1.0.4__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.
- znepro-1.0.4/.cargo/config.toml +6 -0
- znepro-1.0.4/.env.example +3 -0
- znepro-1.0.4/.github/workflows/ci.yml +28 -0
- znepro-1.0.4/.github/workflows/publish-pypi.yml +103 -0
- znepro-1.0.4/.github/workflows/release-wheels.yml +39 -0
- znepro-1.0.4/.gitignore +35 -0
- znepro-1.0.4/CHANGELOG.md +26 -0
- znepro-1.0.4/Cargo.lock +275 -0
- znepro-1.0.4/Cargo.toml +35 -0
- znepro-1.0.4/LICENSE +190 -0
- znepro-1.0.4/PKG-INFO +297 -0
- znepro-1.0.4/README.md +249 -0
- znepro-1.0.4/benchmarks/__init__.py +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/1_original_braket_project/braket_qaoa_maxcut.py +60 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/1_original_braket_project/raw_braket_qpu_results.json +29 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/2_customer_added_code/DIFF_WHAT_CUSTOMER_ADDED.md +44 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/2_customer_added_code/add_znepro_mitigation.py +115 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/3_uploaded_to_r2/blinded_inner_payload.json +24 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/3_uploaded_to_r2/input.zk +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/3_uploaded_to_r2/r2_upload_metadata.json +17 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/4_downloaded_from_r2/final_unblinded_result.json +14 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/4_downloaded_from_r2/output.zk +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/01_lanl_qaoa_ankaa_aria/4_downloaded_from_r2/server_blinded_output.json +17 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/1_original_braket_project/aquila_ahs_mis_program.py +61 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/1_original_braket_project/raw_aquila_qpu_results.json +28 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/2_customer_added_code/DIFF_WHAT_CUSTOMER_ADDED.md +38 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/2_customer_added_code/add_znepro_mitigation.py +103 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/3_uploaded_to_r2/blinded_inner_payload.json +24 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/3_uploaded_to_r2/input.zk +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/3_uploaded_to_r2/r2_upload_metadata.json +17 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/4_downloaded_from_r2/final_unblinded_result.json +15 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/4_downloaded_from_r2/output.zk +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/02_quera_aquila_rydberg_256q/4_downloaded_from_r2/server_blinded_output.json +17 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/1_original_braket_project/braket_vqe_lih_16A.py +51 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/1_original_braket_project/raw_braket_vqe_results.json +26 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/2_customer_added_code/add_znepro_mitigation.py +108 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/3_uploaded_to_r2/blinded_inner_payload.json +26 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/3_uploaded_to_r2/input.zk +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/3_uploaded_to_r2/r2_upload_metadata.json +17 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/4_downloaded_from_r2/final_unblinded_result.json +15 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/4_downloaded_from_r2/output.zk +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/03_braket_pennylane_vqe_lih/4_downloaded_from_r2/server_blinded_output.json +17 -0
- znepro-1.0.4/benchmarks/braket_case_studies/README.md +26 -0
- znepro-1.0.4/benchmarks/braket_case_studies/__init__.py +0 -0
- znepro-1.0.4/benchmarks/braket_case_studies/run_all_braket_case_studies.py +94 -0
- znepro-1.0.4/benchmarks/braket_case_studies/shared_sdk/r2_bridge.py +347 -0
- znepro-1.0.4/benchmarks/braket_case_studies/shared_sdk/znepro_braket_plugin.py +230 -0
- znepro-1.0.4/benchmarks/braket_case_studies/test_braket_case_studies.py +153 -0
- znepro-1.0.4/docs/benchmarks.md +40 -0
- znepro-1.0.4/docs/hardware-adapters.md +45 -0
- znepro-1.0.4/docs/quickstart.md +64 -0
- znepro-1.0.4/docs/wire-schema-and-receipts.md +82 -0
- znepro-1.0.4/examples/braket_device_example.py +33 -0
- znepro-1.0.4/examples/neutral_atom_rydberg_example.py +43 -0
- znepro-1.0.4/examples/qiskit_ibm_quickstart.py +32 -0
- znepro-1.0.4/examples/run_arxiv_qiskit_benchmarks.py +64 -0
- znepro-1.0.4/pyproject.toml +54 -0
- znepro-1.0.4/python/znepro/__init__.py +849 -0
- znepro-1.0.4/python/znepro/__init__.pyi +193 -0
- znepro-1.0.4/python/znepro/_bridge.py +400 -0
- znepro-1.0.4/python/znepro/_envelope.py +62 -0
- znepro-1.0.4/python/znepro/py.typed +0 -0
- znepro-1.0.4/src/adapters/braket.rs +281 -0
- znepro-1.0.4/src/adapters/cirq.rs +193 -0
- znepro-1.0.4/src/adapters/mod.rs +134 -0
- znepro-1.0.4/src/adapters/neutral_atom.rs +98 -0
- znepro-1.0.4/src/adapters/pytket.rs +225 -0
- znepro-1.0.4/src/adapters/qiskit.rs +250 -0
- znepro-1.0.4/src/client.rs +323 -0
- znepro-1.0.4/src/layout.rs +27 -0
- znepro-1.0.4/src/lib.rs +35 -0
- znepro-1.0.4/src/python.rs +439 -0
- znepro-1.0.4/src/qasm.rs +736 -0
- znepro-1.0.4/src/schema.rs +261 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Allow unresolved Python symbols when linking the optional cdylib on macOS.
|
|
2
|
+
[target.aarch64-apple-darwin]
|
|
3
|
+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
|
|
4
|
+
|
|
5
|
+
[target.x86_64-apple-darwin]
|
|
6
|
+
rustflags = ["-C", "link-arg=-undefined", "-C", "link-arg=dynamic_lookup"]
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
sdk:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
steps:
|
|
12
|
+
- uses: actions/checkout@v4
|
|
13
|
+
- uses: dtolnay/rust-toolchain@stable
|
|
14
|
+
- uses: actions/setup-python@v5
|
|
15
|
+
with:
|
|
16
|
+
python-version: "3.11"
|
|
17
|
+
- name: Rust tests
|
|
18
|
+
run: cargo test
|
|
19
|
+
- name: Rust tests with Python bindings
|
|
20
|
+
run: cargo test --features python
|
|
21
|
+
- name: Python extension in a virtualenv
|
|
22
|
+
run: |
|
|
23
|
+
python -m venv .venv
|
|
24
|
+
.venv/bin/python -m pip install --upgrade pip
|
|
25
|
+
.venv/bin/python -m pip install maturin pytest qiskit cryptography
|
|
26
|
+
.venv/bin/maturin develop --release
|
|
27
|
+
- name: Python tests and leak scan
|
|
28
|
+
run: .venv/bin/pytest tests/ -v
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
concurrency:
|
|
9
|
+
group: pypi-${{ github.ref }}
|
|
10
|
+
cancel-in-progress: false
|
|
11
|
+
|
|
12
|
+
permissions:
|
|
13
|
+
contents: read
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
linux:
|
|
17
|
+
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
|
|
18
|
+
runs-on: ubuntu-latest
|
|
19
|
+
strategy:
|
|
20
|
+
fail-fast: false
|
|
21
|
+
matrix:
|
|
22
|
+
target: [x86_64, aarch64]
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
- name: Remap compiler paths
|
|
26
|
+
shell: bash
|
|
27
|
+
run: |
|
|
28
|
+
flags="--remap-path-prefix ${HOME}=/build"
|
|
29
|
+
if [ -n "${USERPROFILE:-}" ]; then
|
|
30
|
+
flags="${flags} --remap-path-prefix ${USERPROFILE}=/build"
|
|
31
|
+
fi
|
|
32
|
+
echo "RUSTFLAGS=${flags}" >> "$GITHUB_ENV"
|
|
33
|
+
- name: Build manylinux abi3 wheels
|
|
34
|
+
uses: PyO3/maturin-action@v1
|
|
35
|
+
with:
|
|
36
|
+
target: ${{ matrix.target }}
|
|
37
|
+
manylinux: auto
|
|
38
|
+
args: --release --strip --out dist
|
|
39
|
+
- uses: actions/upload-artifact@v4
|
|
40
|
+
with:
|
|
41
|
+
name: wheels-linux-${{ matrix.target }}
|
|
42
|
+
path: dist
|
|
43
|
+
|
|
44
|
+
windows:
|
|
45
|
+
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
|
|
46
|
+
runs-on: windows-latest
|
|
47
|
+
steps:
|
|
48
|
+
- uses: actions/checkout@v4
|
|
49
|
+
- name: Remap compiler paths
|
|
50
|
+
shell: bash
|
|
51
|
+
run: |
|
|
52
|
+
flags="--remap-path-prefix ${HOME}=/build"
|
|
53
|
+
if [ -n "${USERPROFILE:-}" ]; then
|
|
54
|
+
flags="${flags} --remap-path-prefix ${USERPROFILE}=/build"
|
|
55
|
+
fi
|
|
56
|
+
echo "RUSTFLAGS=${flags}" >> "$GITHUB_ENV"
|
|
57
|
+
- name: Build Windows abi3 wheel
|
|
58
|
+
uses: PyO3/maturin-action@v1
|
|
59
|
+
with:
|
|
60
|
+
target: x64
|
|
61
|
+
args: --release --strip --out dist
|
|
62
|
+
- uses: actions/upload-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: wheels-windows-x64
|
|
65
|
+
path: dist
|
|
66
|
+
|
|
67
|
+
sdist:
|
|
68
|
+
if: github.event_name == 'workflow_dispatch' || startsWith(github.event.release.tag_name, 'v')
|
|
69
|
+
runs-on: ubuntu-latest
|
|
70
|
+
steps:
|
|
71
|
+
- uses: actions/checkout@v4
|
|
72
|
+
- name: Remap compiler paths
|
|
73
|
+
shell: bash
|
|
74
|
+
run: |
|
|
75
|
+
flags="--remap-path-prefix ${HOME}=/build"
|
|
76
|
+
echo "RUSTFLAGS=${flags}" >> "$GITHUB_ENV"
|
|
77
|
+
- name: Build source distribution
|
|
78
|
+
uses: PyO3/maturin-action@v1
|
|
79
|
+
with:
|
|
80
|
+
command: sdist
|
|
81
|
+
args: --out dist
|
|
82
|
+
- uses: actions/upload-artifact@v4
|
|
83
|
+
with:
|
|
84
|
+
name: wheels-sdist
|
|
85
|
+
path: dist
|
|
86
|
+
|
|
87
|
+
publish:
|
|
88
|
+
needs: [linux, windows, sdist]
|
|
89
|
+
runs-on: ubuntu-latest
|
|
90
|
+
environment: pypi
|
|
91
|
+
permissions:
|
|
92
|
+
contents: read
|
|
93
|
+
id-token: write
|
|
94
|
+
steps:
|
|
95
|
+
- uses: actions/download-artifact@v4
|
|
96
|
+
with:
|
|
97
|
+
pattern: wheels-*
|
|
98
|
+
merge-multiple: true
|
|
99
|
+
path: dist
|
|
100
|
+
- name: Publish with trusted publishing
|
|
101
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
102
|
+
with:
|
|
103
|
+
packages-dir: dist
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
name: Release wheels
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags: ["v*"]
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
wheels:
|
|
10
|
+
strategy:
|
|
11
|
+
fail-fast: false
|
|
12
|
+
matrix:
|
|
13
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
14
|
+
runs-on: ${{ matrix.os }}
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- name: Remap compiler paths
|
|
18
|
+
shell: bash
|
|
19
|
+
run: |
|
|
20
|
+
flags="--remap-path-prefix ${HOME}=/build"
|
|
21
|
+
if [ "$(uname -s)" = "Darwin" ]; then
|
|
22
|
+
flags="${flags} -C link-arg=-undefined -C link-arg=dynamic_lookup"
|
|
23
|
+
fi
|
|
24
|
+
if [ -n "${USERPROFILE:-}" ]; then
|
|
25
|
+
flags="${flags} --remap-path-prefix ${USERPROFILE}=/build"
|
|
26
|
+
fi
|
|
27
|
+
echo "RUSTFLAGS=${flags}" >> "$GITHUB_ENV"
|
|
28
|
+
- uses: actions/setup-python@v5
|
|
29
|
+
with:
|
|
30
|
+
python-version: "3.11"
|
|
31
|
+
- name: Build stripped abi3 wheels
|
|
32
|
+
uses: PyO3/maturin-action@v1
|
|
33
|
+
with:
|
|
34
|
+
command: build
|
|
35
|
+
args: --release --strip --out dist
|
|
36
|
+
- uses: actions/upload-artifact@v4
|
|
37
|
+
with:
|
|
38
|
+
name: wheels-${{ matrix.os }}
|
|
39
|
+
path: dist
|
znepro-1.0.4/.gitignore
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Secrets and local environments
|
|
2
|
+
.env
|
|
3
|
+
.env.*
|
|
4
|
+
!.env.example
|
|
5
|
+
|
|
6
|
+
# Private evaluation vaults. These stay on disk and must never be committed.
|
|
7
|
+
ZNEPro_Physics_Test/
|
|
8
|
+
ZNEPro_Blind_Test/
|
|
9
|
+
ZNEPro_Live_AB_Test/
|
|
10
|
+
M3_Comparison/
|
|
11
|
+
**/private_truth.json
|
|
12
|
+
**/*znepro_service_answers*
|
|
13
|
+
|
|
14
|
+
# Superseded local copies kept on disk after the public layout move
|
|
15
|
+
/BENCHMARK_REPORT.md
|
|
16
|
+
/results.json
|
|
17
|
+
/requirements.txt
|
|
18
|
+
/run_arxiv_qiskit_benchmarks.py
|
|
19
|
+
/test_customer_suite.py
|
|
20
|
+
/test_no_backend_ip_leak.py
|
|
21
|
+
/scripts/
|
|
22
|
+
/braket_case_studies/
|
|
23
|
+
|
|
24
|
+
# Build and tool output
|
|
25
|
+
/target/
|
|
26
|
+
/Cargo.lock
|
|
27
|
+
/dist/
|
|
28
|
+
*.egg-info/
|
|
29
|
+
__pycache__/
|
|
30
|
+
.pytest_cache/
|
|
31
|
+
.venv/
|
|
32
|
+
python/znepro/_core*.so
|
|
33
|
+
python/znepro/_core*.dylib
|
|
34
|
+
python/znepro/_core*.pyd
|
|
35
|
+
.DS_Store
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 1.0.4
|
|
4
|
+
|
|
5
|
+
- Add PyPI project links for `https://znepro.com`, the documentation, the source repository, the benchmark archive, and the issue tracker. Wheel publication uses GitHub Actions trusted publishing.
|
|
6
|
+
- The trusted-publishing workflow uploads Linux wheels, the Windows wheel, and the source distribution without waiting for a hosted macOS runner.
|
|
7
|
+
- Document the self-serve account flow at `https://znepro.com/login` and `https://znepro.com/dashboard`, including the 25,000 EMS card-verified grant, the 10,000 EMS dual collaborator referral, and prepaid wallet top-ups from $10.
|
|
8
|
+
- Point the hardware-study index at the engine 0.1.8 replays. The ticket API default stays `https://api.znepro.com`.
|
|
9
|
+
|
|
10
|
+
## 1.0.3
|
|
11
|
+
|
|
12
|
+
- Wire histograms use `q0_left`: character `i` is `q[i]`, and Pauli index `i` (`"ZII"`) is `q[i]`.
|
|
13
|
+
- `bit_order` on `build_job_json`, `submit_job`, `submit_and_wait`, and `mitigate_json` keeps Braket keys and reverses Qiskit `get_counts()` keys before upload.
|
|
14
|
+
- `counts_from_qiskit` applies that reversal. `counts_from_braket` keeps `q0_left`.
|
|
15
|
+
|
|
16
|
+
## 1.0.2
|
|
17
|
+
|
|
18
|
+
- AWS Braket OpenQASM 3 programs (`OPENQASM 3.0`, `qubit[N]` / `bit[N]`, `c = measure q`, `cnot`, `ry(3*pi/4)`) are rewritten to OpenQASM 2 before upload.
|
|
19
|
+
- `build_job_json`, `submit_job`, `submit_and_wait`, and `mitigate_json` all run that rewrite, including a raw payload that never passed through `build_job_json`.
|
|
20
|
+
|
|
21
|
+
## 1.0.1
|
|
22
|
+
|
|
23
|
+
- Partial calibration cards omit median `default_error_1q` and `default_error_2q` instead of applying them to unmeasured qubits and edges.
|
|
24
|
+
- A scalar readout fidelity `F` maps to `prob_meas1_prep0 = prob_meas0_prep1 = (1-F)/2`.
|
|
25
|
+
- Outbound OpenQASM rewrites `cnot` to `cx` and evaluates compound `pi` angles before the R2 upload.
|
|
26
|
+
- Decrypted receipts keep `engine_version` when the service sends it.
|
znepro-1.0.4/Cargo.lock
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "autocfg"
|
|
7
|
+
version = "1.5.1"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
10
|
+
|
|
11
|
+
[[package]]
|
|
12
|
+
name = "cfg-if"
|
|
13
|
+
version = "1.0.5"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
16
|
+
|
|
17
|
+
[[package]]
|
|
18
|
+
name = "heck"
|
|
19
|
+
version = "0.5.0"
|
|
20
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
21
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
22
|
+
|
|
23
|
+
[[package]]
|
|
24
|
+
name = "indoc"
|
|
25
|
+
version = "2.0.8"
|
|
26
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
27
|
+
checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
|
|
28
|
+
dependencies = [
|
|
29
|
+
"rustversion",
|
|
30
|
+
]
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "itoa"
|
|
34
|
+
version = "1.0.19"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
|
|
37
|
+
|
|
38
|
+
[[package]]
|
|
39
|
+
name = "libc"
|
|
40
|
+
version = "0.2.191"
|
|
41
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
42
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
43
|
+
|
|
44
|
+
[[package]]
|
|
45
|
+
name = "memchr"
|
|
46
|
+
version = "2.8.3"
|
|
47
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
48
|
+
checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
|
|
49
|
+
|
|
50
|
+
[[package]]
|
|
51
|
+
name = "memoffset"
|
|
52
|
+
version = "0.9.1"
|
|
53
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
54
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
55
|
+
dependencies = [
|
|
56
|
+
"autocfg",
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
[[package]]
|
|
60
|
+
name = "once_cell"
|
|
61
|
+
version = "1.21.4"
|
|
62
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
63
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
64
|
+
|
|
65
|
+
[[package]]
|
|
66
|
+
name = "portable-atomic"
|
|
67
|
+
version = "1.15.0"
|
|
68
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
69
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
70
|
+
|
|
71
|
+
[[package]]
|
|
72
|
+
name = "proc-macro2"
|
|
73
|
+
version = "1.0.107"
|
|
74
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
75
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
76
|
+
dependencies = [
|
|
77
|
+
"unicode-ident",
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
[[package]]
|
|
81
|
+
name = "pyo3"
|
|
82
|
+
version = "0.22.6"
|
|
83
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
84
|
+
checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
|
|
85
|
+
dependencies = [
|
|
86
|
+
"cfg-if",
|
|
87
|
+
"indoc",
|
|
88
|
+
"libc",
|
|
89
|
+
"memoffset",
|
|
90
|
+
"once_cell",
|
|
91
|
+
"portable-atomic",
|
|
92
|
+
"pyo3-build-config",
|
|
93
|
+
"pyo3-ffi",
|
|
94
|
+
"pyo3-macros",
|
|
95
|
+
"unindent",
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
[[package]]
|
|
99
|
+
name = "pyo3-build-config"
|
|
100
|
+
version = "0.22.6"
|
|
101
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
102
|
+
checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
|
|
103
|
+
dependencies = [
|
|
104
|
+
"once_cell",
|
|
105
|
+
"target-lexicon",
|
|
106
|
+
]
|
|
107
|
+
|
|
108
|
+
[[package]]
|
|
109
|
+
name = "pyo3-ffi"
|
|
110
|
+
version = "0.22.6"
|
|
111
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
112
|
+
checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
|
|
113
|
+
dependencies = [
|
|
114
|
+
"libc",
|
|
115
|
+
"pyo3-build-config",
|
|
116
|
+
]
|
|
117
|
+
|
|
118
|
+
[[package]]
|
|
119
|
+
name = "pyo3-macros"
|
|
120
|
+
version = "0.22.6"
|
|
121
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
+
checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
|
|
123
|
+
dependencies = [
|
|
124
|
+
"proc-macro2",
|
|
125
|
+
"pyo3-macros-backend",
|
|
126
|
+
"quote",
|
|
127
|
+
"syn 2.0.119",
|
|
128
|
+
]
|
|
129
|
+
|
|
130
|
+
[[package]]
|
|
131
|
+
name = "pyo3-macros-backend"
|
|
132
|
+
version = "0.22.6"
|
|
133
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
134
|
+
checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
|
|
135
|
+
dependencies = [
|
|
136
|
+
"heck",
|
|
137
|
+
"proc-macro2",
|
|
138
|
+
"pyo3-build-config",
|
|
139
|
+
"quote",
|
|
140
|
+
"syn 2.0.119",
|
|
141
|
+
]
|
|
142
|
+
|
|
143
|
+
[[package]]
|
|
144
|
+
name = "quote"
|
|
145
|
+
version = "1.0.47"
|
|
146
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
147
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
148
|
+
dependencies = [
|
|
149
|
+
"proc-macro2",
|
|
150
|
+
]
|
|
151
|
+
|
|
152
|
+
[[package]]
|
|
153
|
+
name = "rustversion"
|
|
154
|
+
version = "1.0.23"
|
|
155
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
156
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
157
|
+
|
|
158
|
+
[[package]]
|
|
159
|
+
name = "serde"
|
|
160
|
+
version = "1.0.229"
|
|
161
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
162
|
+
checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
|
|
163
|
+
dependencies = [
|
|
164
|
+
"serde_core",
|
|
165
|
+
"serde_derive",
|
|
166
|
+
]
|
|
167
|
+
|
|
168
|
+
[[package]]
|
|
169
|
+
name = "serde_core"
|
|
170
|
+
version = "1.0.229"
|
|
171
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
+
checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
|
|
173
|
+
dependencies = [
|
|
174
|
+
"serde_derive",
|
|
175
|
+
]
|
|
176
|
+
|
|
177
|
+
[[package]]
|
|
178
|
+
name = "serde_derive"
|
|
179
|
+
version = "1.0.229"
|
|
180
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
181
|
+
checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
|
|
182
|
+
dependencies = [
|
|
183
|
+
"proc-macro2",
|
|
184
|
+
"quote",
|
|
185
|
+
"syn 3.0.10",
|
|
186
|
+
]
|
|
187
|
+
|
|
188
|
+
[[package]]
|
|
189
|
+
name = "serde_json"
|
|
190
|
+
version = "1.0.154"
|
|
191
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
192
|
+
checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
|
|
193
|
+
dependencies = [
|
|
194
|
+
"itoa",
|
|
195
|
+
"memchr",
|
|
196
|
+
"serde",
|
|
197
|
+
"serde_core",
|
|
198
|
+
"zmij",
|
|
199
|
+
]
|
|
200
|
+
|
|
201
|
+
[[package]]
|
|
202
|
+
name = "syn"
|
|
203
|
+
version = "2.0.119"
|
|
204
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
205
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
206
|
+
dependencies = [
|
|
207
|
+
"proc-macro2",
|
|
208
|
+
"quote",
|
|
209
|
+
"unicode-ident",
|
|
210
|
+
]
|
|
211
|
+
|
|
212
|
+
[[package]]
|
|
213
|
+
name = "syn"
|
|
214
|
+
version = "3.0.10"
|
|
215
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
216
|
+
checksum = "4ae9ccbea3a7b0b09443036490c8f34a8b1b760fd345e5c0dae0aac718faea79"
|
|
217
|
+
dependencies = [
|
|
218
|
+
"proc-macro2",
|
|
219
|
+
"quote",
|
|
220
|
+
"unicode-ident",
|
|
221
|
+
]
|
|
222
|
+
|
|
223
|
+
[[package]]
|
|
224
|
+
name = "target-lexicon"
|
|
225
|
+
version = "0.12.16"
|
|
226
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
227
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
228
|
+
|
|
229
|
+
[[package]]
|
|
230
|
+
name = "thiserror"
|
|
231
|
+
version = "1.0.69"
|
|
232
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
233
|
+
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
|
|
234
|
+
dependencies = [
|
|
235
|
+
"thiserror-impl",
|
|
236
|
+
]
|
|
237
|
+
|
|
238
|
+
[[package]]
|
|
239
|
+
name = "thiserror-impl"
|
|
240
|
+
version = "1.0.69"
|
|
241
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
242
|
+
checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
243
|
+
dependencies = [
|
|
244
|
+
"proc-macro2",
|
|
245
|
+
"quote",
|
|
246
|
+
"syn 2.0.119",
|
|
247
|
+
]
|
|
248
|
+
|
|
249
|
+
[[package]]
|
|
250
|
+
name = "unicode-ident"
|
|
251
|
+
version = "1.0.27"
|
|
252
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
253
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
254
|
+
|
|
255
|
+
[[package]]
|
|
256
|
+
name = "unindent"
|
|
257
|
+
version = "0.2.4"
|
|
258
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
259
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
260
|
+
|
|
261
|
+
[[package]]
|
|
262
|
+
name = "zmij"
|
|
263
|
+
version = "1.0.23"
|
|
264
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
265
|
+
checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
|
|
266
|
+
|
|
267
|
+
[[package]]
|
|
268
|
+
name = "znepro-sdk"
|
|
269
|
+
version = "1.0.4"
|
|
270
|
+
dependencies = [
|
|
271
|
+
"pyo3",
|
|
272
|
+
"serde",
|
|
273
|
+
"serde_json",
|
|
274
|
+
"thiserror",
|
|
275
|
+
]
|
znepro-1.0.4/Cargo.toml
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "znepro-sdk"
|
|
3
|
+
version = "1.0.4"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
license = "Apache-2.0"
|
|
6
|
+
description = "Official hardware-calibration extractors and job payload helpers for the ZNEPro API."
|
|
7
|
+
publish = false
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
homepage = "https://znepro.com"
|
|
10
|
+
documentation = "https://znepro.com/docs"
|
|
11
|
+
repository = "https://github.com/Znepro/znepro-python"
|
|
12
|
+
|
|
13
|
+
[lib]
|
|
14
|
+
name = "znepro_sdk"
|
|
15
|
+
path = "src/lib.rs"
|
|
16
|
+
crate-type = ["rlib", "cdylib"]
|
|
17
|
+
|
|
18
|
+
[features]
|
|
19
|
+
default = []
|
|
20
|
+
python = ["dep:pyo3"]
|
|
21
|
+
extension-module = ["python", "pyo3/extension-module"]
|
|
22
|
+
|
|
23
|
+
[dependencies]
|
|
24
|
+
serde = { version = "1.0", features = ["derive"] }
|
|
25
|
+
serde_json = "1.0"
|
|
26
|
+
thiserror = "1.0"
|
|
27
|
+
pyo3 = { version = "0.22", features = ["abi3-py310"], optional = true }
|
|
28
|
+
|
|
29
|
+
[dev-dependencies]
|
|
30
|
+
|
|
31
|
+
# Release builds strip symbols for published wheels.
|
|
32
|
+
[profile.release]
|
|
33
|
+
strip = "symbols"
|
|
34
|
+
lto = "thin"
|
|
35
|
+
codegen-units = 1
|