g711xz 0.0.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.
- g711xz-0.0.1/.github/workflows/ci.yml +157 -0
- g711xz-0.0.1/.github/workflows/publish.yml +23 -0
- g711xz-0.0.1/.gitignore +66 -0
- g711xz-0.0.1/Cargo.lock +383 -0
- g711xz-0.0.1/Cargo.toml +22 -0
- g711xz-0.0.1/LICENSE +21 -0
- g711xz-0.0.1/PKG-INFO +207 -0
- g711xz-0.0.1/README.md +165 -0
- g711xz-0.0.1/benchmark.py +143 -0
- g711xz-0.0.1/docs/CHANGELOG.md +15 -0
- g711xz-0.0.1/docs/FEATURES.md +334 -0
- g711xz-0.0.1/docs/FORMAT.md +215 -0
- g711xz-0.0.1/docs/README_DE.md +165 -0
- g711xz-0.0.1/docs/README_ES.md +165 -0
- g711xz-0.0.1/docs/README_FR.md +165 -0
- g711xz-0.0.1/docs/README_HI.md +165 -0
- g711xz-0.0.1/docs/README_IT.md +165 -0
- g711xz-0.0.1/docs/README_JA.md +165 -0
- g711xz-0.0.1/docs/README_PT.md +165 -0
- g711xz-0.0.1/docs/README_RU.md +165 -0
- g711xz-0.0.1/docs/README_ZH.md +165 -0
- g711xz-0.0.1/g711xz/__init__.py +681 -0
- g711xz-0.0.1/g711xz/py.typed +0 -0
- g711xz-0.0.1/pyproject.toml +223 -0
- g711xz-0.0.1/src/lib.rs +405 -0
- g711xz-0.0.1/test_g711xz.py +390 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main, master]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
12
|
+
env:
|
|
13
|
+
CARGO_TERM_COLOR: always
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
# Style and types, once
|
|
17
|
+
lint:
|
|
18
|
+
name: Lint
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
|
|
23
|
+
- name: Set up Python
|
|
24
|
+
uses: actions/setup-python@v5
|
|
25
|
+
with:
|
|
26
|
+
python-version: '3.12'
|
|
27
|
+
cache: 'pip'
|
|
28
|
+
|
|
29
|
+
- name: Install dependencies
|
|
30
|
+
run: |
|
|
31
|
+
python -m pip install --upgrade pip
|
|
32
|
+
pip install -e ".[dev]"
|
|
33
|
+
|
|
34
|
+
- name: Check code style
|
|
35
|
+
run: |
|
|
36
|
+
ruff check .
|
|
37
|
+
ruff format --check .
|
|
38
|
+
|
|
39
|
+
- name: Type check
|
|
40
|
+
run: |
|
|
41
|
+
mypy g711xz
|
|
42
|
+
|
|
43
|
+
# Pure Python and NumPy backends on every platform
|
|
44
|
+
test-python:
|
|
45
|
+
name: Python Tests (${{ matrix.os }}, ${{ matrix.python-version }})
|
|
46
|
+
runs-on: ${{ matrix.os }}
|
|
47
|
+
strategy:
|
|
48
|
+
fail-fast: false
|
|
49
|
+
matrix:
|
|
50
|
+
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
51
|
+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14']
|
|
52
|
+
# ubuntu-latest no longer ships Python 3.9
|
|
53
|
+
exclude:
|
|
54
|
+
- os: ubuntu-latest
|
|
55
|
+
python-version: '3.9'
|
|
56
|
+
include:
|
|
57
|
+
- os: ubuntu-24.04
|
|
58
|
+
python-version: '3.9'
|
|
59
|
+
steps:
|
|
60
|
+
- uses: actions/checkout@v4
|
|
61
|
+
|
|
62
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
63
|
+
uses: actions/setup-python@v5
|
|
64
|
+
with:
|
|
65
|
+
python-version: ${{ matrix.python-version }}
|
|
66
|
+
cache: 'pip'
|
|
67
|
+
|
|
68
|
+
- name: Install dependencies
|
|
69
|
+
run: |
|
|
70
|
+
python -m pip install --upgrade pip
|
|
71
|
+
pip install -e ".[dev,numpy]"
|
|
72
|
+
|
|
73
|
+
- name: Run tests with coverage
|
|
74
|
+
run: |
|
|
75
|
+
python -m pytest test_g711xz.py -v --tb=short --cov=g711xz --cov-report=xml --cov-report=term-missing
|
|
76
|
+
|
|
77
|
+
# One matrix job reports the Python and NumPy paths; Codecov merges it
|
|
78
|
+
# with the report of the Rust job.
|
|
79
|
+
- name: Upload coverage to Codecov
|
|
80
|
+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
|
|
81
|
+
uses: codecov/codecov-action@v4
|
|
82
|
+
with:
|
|
83
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
84
|
+
files: coverage.xml
|
|
85
|
+
fail_ci_if_error: false
|
|
86
|
+
|
|
87
|
+
# Rust extension, built in place with maturin. All three backends run here.
|
|
88
|
+
test-rust:
|
|
89
|
+
name: Rust Extension Tests
|
|
90
|
+
runs-on: ubuntu-latest
|
|
91
|
+
steps:
|
|
92
|
+
- uses: actions/checkout@v4
|
|
93
|
+
|
|
94
|
+
- name: Set up Python
|
|
95
|
+
uses: actions/setup-python@v5
|
|
96
|
+
with:
|
|
97
|
+
python-version: '3.12'
|
|
98
|
+
cache: 'pip'
|
|
99
|
+
|
|
100
|
+
- name: Set up Rust
|
|
101
|
+
uses: dtolnay/rust-toolchain@stable
|
|
102
|
+
|
|
103
|
+
- name: Build the extension
|
|
104
|
+
run: |
|
|
105
|
+
python -m venv .venv
|
|
106
|
+
source .venv/bin/activate
|
|
107
|
+
pip install -e ".[dev,numpy]"
|
|
108
|
+
maturin develop --release
|
|
109
|
+
|
|
110
|
+
- name: Run tests with coverage
|
|
111
|
+
run: |
|
|
112
|
+
source .venv/bin/activate
|
|
113
|
+
python -c "import g711xz; assert g711xz.HAS_RUST"
|
|
114
|
+
python -m pytest test_g711xz.py -v --tb=short --cov=g711xz --cov-report=xml --cov-report=term-missing
|
|
115
|
+
|
|
116
|
+
- name: Upload coverage to Codecov
|
|
117
|
+
uses: codecov/codecov-action@v4
|
|
118
|
+
with:
|
|
119
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
120
|
+
files: coverage.xml
|
|
121
|
+
fail_ci_if_error: false
|
|
122
|
+
|
|
123
|
+
# Build pure Python wheel
|
|
124
|
+
build-wheel:
|
|
125
|
+
name: Build Pure Python Wheel
|
|
126
|
+
runs-on: ubuntu-latest
|
|
127
|
+
needs: [lint, test-python, test-rust]
|
|
128
|
+
steps:
|
|
129
|
+
- uses: actions/checkout@v4
|
|
130
|
+
|
|
131
|
+
- name: Set up Python
|
|
132
|
+
uses: actions/setup-python@v5
|
|
133
|
+
with:
|
|
134
|
+
python-version: '3.12'
|
|
135
|
+
cache: 'pip'
|
|
136
|
+
|
|
137
|
+
- name: Install build tools
|
|
138
|
+
run: |
|
|
139
|
+
python -m pip install --upgrade pip
|
|
140
|
+
pip install build
|
|
141
|
+
|
|
142
|
+
- name: Build sdist and wheel
|
|
143
|
+
run: |
|
|
144
|
+
python -m build
|
|
145
|
+
|
|
146
|
+
- name: Verify wheel contents
|
|
147
|
+
run: |
|
|
148
|
+
pip install dist/*.whl
|
|
149
|
+
python -c "import g711xz; print('Import OK')"
|
|
150
|
+
g711xz --help
|
|
151
|
+
|
|
152
|
+
- name: Upload artifacts
|
|
153
|
+
uses: actions/upload-artifact@v4
|
|
154
|
+
with:
|
|
155
|
+
name: dist
|
|
156
|
+
path: dist/*
|
|
157
|
+
retention-days: 30
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
name: Publish
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
tags:
|
|
5
|
+
- "*.*.*"
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
id-token: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
build-and-publish:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: actions/setup-python@v5
|
|
18
|
+
with:
|
|
19
|
+
python-version: "3.12"
|
|
20
|
+
- run: python -m pip install -U build
|
|
21
|
+
- run: python -m build
|
|
22
|
+
- name: Publish to PyPI
|
|
23
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
g711xz-0.0.1/.gitignore
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# IDE
|
|
2
|
+
.idea/
|
|
3
|
+
.vscode/
|
|
4
|
+
.cursor/
|
|
5
|
+
.claude/
|
|
6
|
+
.codex
|
|
7
|
+
*.swp
|
|
8
|
+
*.swo
|
|
9
|
+
|
|
10
|
+
# Python
|
|
11
|
+
__pycache__/
|
|
12
|
+
*.py[cod]
|
|
13
|
+
*$py.class
|
|
14
|
+
*.so
|
|
15
|
+
.Python
|
|
16
|
+
.venv/
|
|
17
|
+
venv/
|
|
18
|
+
env/
|
|
19
|
+
.eggs/
|
|
20
|
+
*.egg-info/
|
|
21
|
+
dist/
|
|
22
|
+
build/
|
|
23
|
+
.pytest_cache/
|
|
24
|
+
.mypy_cache/
|
|
25
|
+
.ruff_cache/
|
|
26
|
+
.coverage
|
|
27
|
+
.coverage.*
|
|
28
|
+
coverage.xml
|
|
29
|
+
htmlcov/
|
|
30
|
+
|
|
31
|
+
# Rust
|
|
32
|
+
target/
|
|
33
|
+
|
|
34
|
+
# OS
|
|
35
|
+
.DS_Store
|
|
36
|
+
Thumbs.db
|
|
37
|
+
|
|
38
|
+
# Env
|
|
39
|
+
.env
|
|
40
|
+
.env.*
|
|
41
|
+
!.env.example
|
|
42
|
+
|
|
43
|
+
# Audio dumps
|
|
44
|
+
*.wav
|
|
45
|
+
*.opus
|
|
46
|
+
*.mp3
|
|
47
|
+
*.ogg
|
|
48
|
+
*.g711.xz
|
|
49
|
+
|
|
50
|
+
# Logs
|
|
51
|
+
logs/
|
|
52
|
+
*.log
|
|
53
|
+
*.csv
|
|
54
|
+
|
|
55
|
+
# Docker
|
|
56
|
+
.docker/
|
|
57
|
+
|
|
58
|
+
# Project-local persistent data
|
|
59
|
+
data/
|
|
60
|
+
|
|
61
|
+
# Docs
|
|
62
|
+
*.md
|
|
63
|
+
!README.md
|
|
64
|
+
!CHANGELOG.md
|
|
65
|
+
!CONTRIBUTING.md
|
|
66
|
+
!docs/**/*.md
|
g711xz-0.0.1/Cargo.lock
ADDED
|
@@ -0,0 +1,383 @@
|
|
|
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 = "aws-lc-rs"
|
|
13
|
+
version = "1.19.0"
|
|
14
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
15
|
+
checksum = "048006790404103c488e6c5616b3e7e702a71292aadda08e8f7698a9e0d2eb53"
|
|
16
|
+
dependencies = [
|
|
17
|
+
"aws-lc-sys",
|
|
18
|
+
"zeroize",
|
|
19
|
+
]
|
|
20
|
+
|
|
21
|
+
[[package]]
|
|
22
|
+
name = "aws-lc-sys"
|
|
23
|
+
version = "0.47.0"
|
|
24
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
25
|
+
checksum = "8bfbe32ac36b3c428696ce315464181bc4029d689fd58e3f2a4e58c252242f52"
|
|
26
|
+
dependencies = [
|
|
27
|
+
"cc",
|
|
28
|
+
"cmake",
|
|
29
|
+
"dunce",
|
|
30
|
+
"fs_extra",
|
|
31
|
+
"pkg-config",
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
[[package]]
|
|
35
|
+
name = "byteorder"
|
|
36
|
+
version = "1.5.0"
|
|
37
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
38
|
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
|
39
|
+
|
|
40
|
+
[[package]]
|
|
41
|
+
name = "cc"
|
|
42
|
+
version = "1.11.3"
|
|
43
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
44
|
+
checksum = "02f0e023adb368345ce0ca6cdfc0f24a06554468d0e8503e14a0841de79bfa69"
|
|
45
|
+
dependencies = [
|
|
46
|
+
"find-msvc-tools",
|
|
47
|
+
"jobserver",
|
|
48
|
+
"libc",
|
|
49
|
+
"shlex",
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
[[package]]
|
|
53
|
+
name = "cfg-if"
|
|
54
|
+
version = "1.0.5"
|
|
55
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
56
|
+
checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
|
|
57
|
+
|
|
58
|
+
[[package]]
|
|
59
|
+
name = "cmake"
|
|
60
|
+
version = "0.1.58"
|
|
61
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
62
|
+
checksum = "c0f78a02292a74a88ac736019ab962ece0bc380e3f977bf72e376c5d78ff0678"
|
|
63
|
+
dependencies = [
|
|
64
|
+
"cc",
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
[[package]]
|
|
68
|
+
name = "crc-turbo"
|
|
69
|
+
version = "1.11.0"
|
|
70
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
+
checksum = "fe9845f8267cd17ae1edacec5cd2bc0f8b891d1946db64d929209170fcf7e9b8"
|
|
72
|
+
dependencies = [
|
|
73
|
+
"digest",
|
|
74
|
+
"spin",
|
|
75
|
+
]
|
|
76
|
+
|
|
77
|
+
[[package]]
|
|
78
|
+
name = "crypto-common"
|
|
79
|
+
version = "0.1.7"
|
|
80
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
81
|
+
checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
|
|
82
|
+
dependencies = [
|
|
83
|
+
"generic-array",
|
|
84
|
+
"typenum",
|
|
85
|
+
]
|
|
86
|
+
|
|
87
|
+
[[package]]
|
|
88
|
+
name = "digest"
|
|
89
|
+
version = "0.10.7"
|
|
90
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
91
|
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
|
92
|
+
dependencies = [
|
|
93
|
+
"crypto-common",
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
[[package]]
|
|
97
|
+
name = "dunce"
|
|
98
|
+
version = "1.0.5"
|
|
99
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
100
|
+
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
|
|
101
|
+
|
|
102
|
+
[[package]]
|
|
103
|
+
name = "find-msvc-tools"
|
|
104
|
+
version = "0.1.15"
|
|
105
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
106
|
+
checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
|
|
107
|
+
|
|
108
|
+
[[package]]
|
|
109
|
+
name = "fs_extra"
|
|
110
|
+
version = "1.3.0"
|
|
111
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
112
|
+
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
|
|
113
|
+
|
|
114
|
+
[[package]]
|
|
115
|
+
name = "g711xz"
|
|
116
|
+
version = "0.0.1"
|
|
117
|
+
dependencies = [
|
|
118
|
+
"byteorder",
|
|
119
|
+
"lzma-turbo",
|
|
120
|
+
"pyo3",
|
|
121
|
+
"thiserror",
|
|
122
|
+
]
|
|
123
|
+
|
|
124
|
+
[[package]]
|
|
125
|
+
name = "generic-array"
|
|
126
|
+
version = "0.14.7"
|
|
127
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
128
|
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
|
129
|
+
dependencies = [
|
|
130
|
+
"typenum",
|
|
131
|
+
"version_check",
|
|
132
|
+
]
|
|
133
|
+
|
|
134
|
+
[[package]]
|
|
135
|
+
name = "getrandom"
|
|
136
|
+
version = "0.4.3"
|
|
137
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
138
|
+
checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
|
|
139
|
+
dependencies = [
|
|
140
|
+
"cfg-if",
|
|
141
|
+
"libc",
|
|
142
|
+
"r-efi",
|
|
143
|
+
]
|
|
144
|
+
|
|
145
|
+
[[package]]
|
|
146
|
+
name = "heck"
|
|
147
|
+
version = "0.5.0"
|
|
148
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
149
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "indoc"
|
|
153
|
+
version = "2.0.8"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "a37b2691796cffeb8a8cd305ac66e65841559f147f4e63231d0eafa4db5384d1"
|
|
156
|
+
dependencies = [
|
|
157
|
+
"rustversion",
|
|
158
|
+
]
|
|
159
|
+
|
|
160
|
+
[[package]]
|
|
161
|
+
name = "jobserver"
|
|
162
|
+
version = "0.1.35"
|
|
163
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
164
|
+
checksum = "1c00acbd29eabad4a2392fa0e921c874934dbbf4194312ad20f04a0ed67a3cb3"
|
|
165
|
+
dependencies = [
|
|
166
|
+
"getrandom",
|
|
167
|
+
"libc",
|
|
168
|
+
]
|
|
169
|
+
|
|
170
|
+
[[package]]
|
|
171
|
+
name = "libc"
|
|
172
|
+
version = "0.2.191"
|
|
173
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
174
|
+
checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
|
|
175
|
+
|
|
176
|
+
[[package]]
|
|
177
|
+
name = "lzma-turbo"
|
|
178
|
+
version = "0.12.0"
|
|
179
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
180
|
+
checksum = "8c0ad0959852261cd7449e6de6da34dc6cc310d0dc5fa459bb65f5bd81afa37e"
|
|
181
|
+
dependencies = [
|
|
182
|
+
"aws-lc-rs",
|
|
183
|
+
"crc-turbo",
|
|
184
|
+
]
|
|
185
|
+
|
|
186
|
+
[[package]]
|
|
187
|
+
name = "memoffset"
|
|
188
|
+
version = "0.9.1"
|
|
189
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
190
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
191
|
+
dependencies = [
|
|
192
|
+
"autocfg",
|
|
193
|
+
]
|
|
194
|
+
|
|
195
|
+
[[package]]
|
|
196
|
+
name = "once_cell"
|
|
197
|
+
version = "1.21.4"
|
|
198
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
199
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
200
|
+
|
|
201
|
+
[[package]]
|
|
202
|
+
name = "pkg-config"
|
|
203
|
+
version = "0.3.34"
|
|
204
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
205
|
+
checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
|
|
206
|
+
|
|
207
|
+
[[package]]
|
|
208
|
+
name = "portable-atomic"
|
|
209
|
+
version = "1.15.0"
|
|
210
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
211
|
+
checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
|
|
212
|
+
|
|
213
|
+
[[package]]
|
|
214
|
+
name = "proc-macro2"
|
|
215
|
+
version = "1.0.107"
|
|
216
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
217
|
+
checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
|
|
218
|
+
dependencies = [
|
|
219
|
+
"unicode-ident",
|
|
220
|
+
]
|
|
221
|
+
|
|
222
|
+
[[package]]
|
|
223
|
+
name = "pyo3"
|
|
224
|
+
version = "0.22.6"
|
|
225
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
226
|
+
checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
|
|
227
|
+
dependencies = [
|
|
228
|
+
"cfg-if",
|
|
229
|
+
"indoc",
|
|
230
|
+
"libc",
|
|
231
|
+
"memoffset",
|
|
232
|
+
"once_cell",
|
|
233
|
+
"portable-atomic",
|
|
234
|
+
"pyo3-build-config",
|
|
235
|
+
"pyo3-ffi",
|
|
236
|
+
"pyo3-macros",
|
|
237
|
+
"unindent",
|
|
238
|
+
]
|
|
239
|
+
|
|
240
|
+
[[package]]
|
|
241
|
+
name = "pyo3-build-config"
|
|
242
|
+
version = "0.22.6"
|
|
243
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
244
|
+
checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
|
|
245
|
+
dependencies = [
|
|
246
|
+
"once_cell",
|
|
247
|
+
"target-lexicon",
|
|
248
|
+
]
|
|
249
|
+
|
|
250
|
+
[[package]]
|
|
251
|
+
name = "pyo3-ffi"
|
|
252
|
+
version = "0.22.6"
|
|
253
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
254
|
+
checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
|
|
255
|
+
dependencies = [
|
|
256
|
+
"libc",
|
|
257
|
+
"pyo3-build-config",
|
|
258
|
+
]
|
|
259
|
+
|
|
260
|
+
[[package]]
|
|
261
|
+
name = "pyo3-macros"
|
|
262
|
+
version = "0.22.6"
|
|
263
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
264
|
+
checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
|
|
265
|
+
dependencies = [
|
|
266
|
+
"proc-macro2",
|
|
267
|
+
"pyo3-macros-backend",
|
|
268
|
+
"quote",
|
|
269
|
+
"syn",
|
|
270
|
+
]
|
|
271
|
+
|
|
272
|
+
[[package]]
|
|
273
|
+
name = "pyo3-macros-backend"
|
|
274
|
+
version = "0.22.6"
|
|
275
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
276
|
+
checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
|
|
277
|
+
dependencies = [
|
|
278
|
+
"heck",
|
|
279
|
+
"proc-macro2",
|
|
280
|
+
"pyo3-build-config",
|
|
281
|
+
"quote",
|
|
282
|
+
"syn",
|
|
283
|
+
]
|
|
284
|
+
|
|
285
|
+
[[package]]
|
|
286
|
+
name = "quote"
|
|
287
|
+
version = "1.0.47"
|
|
288
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
289
|
+
checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
|
|
290
|
+
dependencies = [
|
|
291
|
+
"proc-macro2",
|
|
292
|
+
]
|
|
293
|
+
|
|
294
|
+
[[package]]
|
|
295
|
+
name = "r-efi"
|
|
296
|
+
version = "6.0.0"
|
|
297
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
298
|
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
|
299
|
+
|
|
300
|
+
[[package]]
|
|
301
|
+
name = "rustversion"
|
|
302
|
+
version = "1.0.23"
|
|
303
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
304
|
+
checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
|
|
305
|
+
|
|
306
|
+
[[package]]
|
|
307
|
+
name = "shlex"
|
|
308
|
+
version = "2.0.1"
|
|
309
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
310
|
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
|
311
|
+
|
|
312
|
+
[[package]]
|
|
313
|
+
name = "spin"
|
|
314
|
+
version = "0.10.1"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "023a211cb3138dbc438680b32560ad89f699977624c9f8dbb95a47d5b4c07dd3"
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "syn"
|
|
320
|
+
version = "2.0.119"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
|
|
323
|
+
dependencies = [
|
|
324
|
+
"proc-macro2",
|
|
325
|
+
"quote",
|
|
326
|
+
"unicode-ident",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "target-lexicon"
|
|
331
|
+
version = "0.12.16"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
|
|
334
|
+
|
|
335
|
+
[[package]]
|
|
336
|
+
name = "thiserror"
|
|
337
|
+
version = "1.0.69"
|
|
338
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
339
|
+
checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
|
|
340
|
+
dependencies = [
|
|
341
|
+
"thiserror-impl",
|
|
342
|
+
]
|
|
343
|
+
|
|
344
|
+
[[package]]
|
|
345
|
+
name = "thiserror-impl"
|
|
346
|
+
version = "1.0.69"
|
|
347
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
348
|
+
checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
|
|
349
|
+
dependencies = [
|
|
350
|
+
"proc-macro2",
|
|
351
|
+
"quote",
|
|
352
|
+
"syn",
|
|
353
|
+
]
|
|
354
|
+
|
|
355
|
+
[[package]]
|
|
356
|
+
name = "typenum"
|
|
357
|
+
version = "1.20.1"
|
|
358
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
359
|
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
|
360
|
+
|
|
361
|
+
[[package]]
|
|
362
|
+
name = "unicode-ident"
|
|
363
|
+
version = "1.0.27"
|
|
364
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
365
|
+
checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
|
|
366
|
+
|
|
367
|
+
[[package]]
|
|
368
|
+
name = "unindent"
|
|
369
|
+
version = "0.2.4"
|
|
370
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
371
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
372
|
+
|
|
373
|
+
[[package]]
|
|
374
|
+
name = "version_check"
|
|
375
|
+
version = "0.9.5"
|
|
376
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
377
|
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
|
378
|
+
|
|
379
|
+
[[package]]
|
|
380
|
+
name = "zeroize"
|
|
381
|
+
version = "1.9.2"
|
|
382
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
383
|
+
checksum = "85ccff8a4805aba1eaa4cd4afcd49f7557dd2cf5fd79ffc37f8959466effc5aa"
|
g711xz-0.0.1/Cargo.toml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "g711xz"
|
|
3
|
+
version = "0.0.1"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
description = "Rust implementation of g711xz call recording codec with PyO3 bindings"
|
|
6
|
+
license = "MIT"
|
|
7
|
+
repository = "https://github.com/wachawo/g711xz"
|
|
8
|
+
|
|
9
|
+
[lib]
|
|
10
|
+
name = "g711xz"
|
|
11
|
+
crate-type = ["cdylib"]
|
|
12
|
+
|
|
13
|
+
[dependencies]
|
|
14
|
+
pyo3 = { version = "0.22", features = ["extension-module", "abi3-py38"] }
|
|
15
|
+
lzma-turbo = { version = "0.12", features = ["xz", "enc"] }
|
|
16
|
+
thiserror = "1.0"
|
|
17
|
+
byteorder = "1.5"
|
|
18
|
+
|
|
19
|
+
[profile.release]
|
|
20
|
+
lto = true
|
|
21
|
+
opt-level = 3
|
|
22
|
+
codegen-units = 1
|
g711xz-0.0.1/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Aleksandr Pimenov (167337375+wachawo@users.noreply.github.com)
|
|
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.
|