nexuslog-lib 0.5.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.
- nexuslog_lib-0.5.0/.github/workflows/ci.yml +131 -0
- nexuslog_lib-0.5.0/.gitignore +31 -0
- nexuslog_lib-0.5.0/Cargo.lock +449 -0
- nexuslog_lib-0.5.0/Cargo.toml +24 -0
- nexuslog_lib-0.5.0/LICENSE +21 -0
- nexuslog_lib-0.5.0/PKG-INFO +132 -0
- nexuslog_lib-0.5.0/README.md +108 -0
- nexuslog_lib-0.5.0/README_CN.md +108 -0
- nexuslog_lib-0.5.0/assets/bench.png +0 -0
- nexuslog_lib-0.5.0/benches/bench_python.py +365 -0
- nexuslog_lib-0.5.0/benches/example.py +24 -0
- nexuslog_lib-0.5.0/pyproject.toml +43 -0
- nexuslog_lib-0.5.0/python/nexuslog/__init__.py +159 -0
- nexuslog_lib-0.5.0/python/nexuslog/_logger.pyi +22 -0
- nexuslog_lib-0.5.0/python/nexuslog/py.typed +1 -0
- nexuslog_lib-0.5.0/python/tests/test_basic_config.py +45 -0
- nexuslog_lib-0.5.0/src/lib.rs +750 -0
- nexuslog_lib-0.5.0/uv.lock +697 -0
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
tags: ['v*']
|
|
7
|
+
pull_request:
|
|
8
|
+
branches: [main]
|
|
9
|
+
|
|
10
|
+
permissions:
|
|
11
|
+
contents: read
|
|
12
|
+
|
|
13
|
+
env:
|
|
14
|
+
PYTHON_VERSIONS: "3.11 3.12 3.13 3.14"
|
|
15
|
+
|
|
16
|
+
jobs:
|
|
17
|
+
# Build wheels for Linux
|
|
18
|
+
linux:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
strategy:
|
|
21
|
+
matrix:
|
|
22
|
+
target: [x86_64, aarch64]
|
|
23
|
+
steps:
|
|
24
|
+
- uses: actions/checkout@v4
|
|
25
|
+
- uses: actions/setup-python@v5
|
|
26
|
+
with:
|
|
27
|
+
python-version: |
|
|
28
|
+
3.11
|
|
29
|
+
3.12
|
|
30
|
+
3.13
|
|
31
|
+
3.14
|
|
32
|
+
- name: Build wheels
|
|
33
|
+
uses: PyO3/maturin-action@v1
|
|
34
|
+
with:
|
|
35
|
+
target: ${{ matrix.target }}
|
|
36
|
+
args: --release --out dist -i python3.11 -i python3.12 -i python3.13 -i python3.14
|
|
37
|
+
sccache: 'true'
|
|
38
|
+
manylinux: auto
|
|
39
|
+
- name: Upload wheels
|
|
40
|
+
uses: actions/upload-artifact@v4
|
|
41
|
+
with:
|
|
42
|
+
name: wheels-linux-${{ matrix.target }}
|
|
43
|
+
path: dist
|
|
44
|
+
|
|
45
|
+
# Build wheels for Windows
|
|
46
|
+
windows:
|
|
47
|
+
runs-on: windows-latest
|
|
48
|
+
strategy:
|
|
49
|
+
matrix:
|
|
50
|
+
target: [x64]
|
|
51
|
+
steps:
|
|
52
|
+
- uses: actions/checkout@v4
|
|
53
|
+
- uses: actions/setup-python@v5
|
|
54
|
+
with:
|
|
55
|
+
python-version: |
|
|
56
|
+
3.11
|
|
57
|
+
3.12
|
|
58
|
+
3.13
|
|
59
|
+
3.14
|
|
60
|
+
- name: Build wheels
|
|
61
|
+
uses: PyO3/maturin-action@v1
|
|
62
|
+
with:
|
|
63
|
+
args: --release --out dist -i python3.11 -i python3.12 -i python3.13 -i python3.14
|
|
64
|
+
sccache: 'true'
|
|
65
|
+
- name: Upload wheels
|
|
66
|
+
uses: actions/upload-artifact@v4
|
|
67
|
+
with:
|
|
68
|
+
name: wheels-windows-${{ matrix.target }}
|
|
69
|
+
path: dist
|
|
70
|
+
|
|
71
|
+
# Build wheels for macOS
|
|
72
|
+
macos:
|
|
73
|
+
runs-on: macos-latest
|
|
74
|
+
strategy:
|
|
75
|
+
matrix:
|
|
76
|
+
target: [x86_64, aarch64]
|
|
77
|
+
steps:
|
|
78
|
+
- uses: actions/checkout@v4
|
|
79
|
+
- uses: actions/setup-python@v5
|
|
80
|
+
with:
|
|
81
|
+
python-version: |
|
|
82
|
+
3.11
|
|
83
|
+
3.12
|
|
84
|
+
3.13
|
|
85
|
+
3.14
|
|
86
|
+
- name: Build wheels
|
|
87
|
+
uses: PyO3/maturin-action@v1
|
|
88
|
+
with:
|
|
89
|
+
target: ${{ matrix.target }}-apple-darwin
|
|
90
|
+
args: --release --out dist -i python3.11 -i python3.12 -i python3.13 -i python3.14
|
|
91
|
+
sccache: 'true'
|
|
92
|
+
- name: Upload wheels
|
|
93
|
+
uses: actions/upload-artifact@v4
|
|
94
|
+
with:
|
|
95
|
+
name: wheels-macos-${{ matrix.target }}
|
|
96
|
+
path: dist
|
|
97
|
+
|
|
98
|
+
# Build source distribution
|
|
99
|
+
sdist:
|
|
100
|
+
runs-on: ubuntu-latest
|
|
101
|
+
steps:
|
|
102
|
+
- uses: actions/checkout@v4
|
|
103
|
+
- name: Build sdist
|
|
104
|
+
uses: PyO3/maturin-action@v1
|
|
105
|
+
with:
|
|
106
|
+
command: sdist
|
|
107
|
+
args: --out dist
|
|
108
|
+
- name: Upload sdist
|
|
109
|
+
uses: actions/upload-artifact@v4
|
|
110
|
+
with:
|
|
111
|
+
name: wheels-sdist
|
|
112
|
+
path: dist
|
|
113
|
+
|
|
114
|
+
# Publish to PyPI
|
|
115
|
+
release:
|
|
116
|
+
name: Release
|
|
117
|
+
runs-on: ubuntu-latest
|
|
118
|
+
if: startsWith(github.ref, 'refs/tags/')
|
|
119
|
+
needs: [linux, windows, macos, sdist]
|
|
120
|
+
permissions:
|
|
121
|
+
id-token: write
|
|
122
|
+
steps:
|
|
123
|
+
- uses: actions/download-artifact@v4
|
|
124
|
+
with:
|
|
125
|
+
pattern: wheels-*
|
|
126
|
+
merge-multiple: true
|
|
127
|
+
path: dist
|
|
128
|
+
- name: Publish to PyPI
|
|
129
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
130
|
+
with:
|
|
131
|
+
password: ${{ secrets.PYPI_API_TOKEN }}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Rust
|
|
2
|
+
/target/
|
|
3
|
+
Cargo.lock
|
|
4
|
+
|
|
5
|
+
# Python
|
|
6
|
+
__pycache__/
|
|
7
|
+
*.py[cod]
|
|
8
|
+
*$py.class
|
|
9
|
+
*.so
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
dist/
|
|
13
|
+
*.egg-info/
|
|
14
|
+
*.egg
|
|
15
|
+
.eggs/
|
|
16
|
+
.venv/
|
|
17
|
+
venv/
|
|
18
|
+
ENV/
|
|
19
|
+
|
|
20
|
+
# IDE
|
|
21
|
+
.vscode/
|
|
22
|
+
.idea/
|
|
23
|
+
|
|
24
|
+
# OS
|
|
25
|
+
.DS_Store
|
|
26
|
+
*.log
|
|
27
|
+
|
|
28
|
+
# Environment
|
|
29
|
+
.env
|
|
30
|
+
.env.*
|
|
31
|
+
tutorial/
|
|
@@ -0,0 +1,449 @@
|
|
|
1
|
+
# This file is automatically @generated by Cargo.
|
|
2
|
+
# It is not intended for manual editing.
|
|
3
|
+
version = 4
|
|
4
|
+
|
|
5
|
+
[[package]]
|
|
6
|
+
name = "android_system_properties"
|
|
7
|
+
version = "0.1.5"
|
|
8
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
9
|
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
|
10
|
+
dependencies = [
|
|
11
|
+
"libc",
|
|
12
|
+
]
|
|
13
|
+
|
|
14
|
+
[[package]]
|
|
15
|
+
name = "arrayvec"
|
|
16
|
+
version = "0.7.7"
|
|
17
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
18
|
+
checksum = "f02882884d3e1bc524fb12c79f107f6ad0e1cfd498c536ffb494301740995dfe"
|
|
19
|
+
|
|
20
|
+
[[package]]
|
|
21
|
+
name = "autocfg"
|
|
22
|
+
version = "1.5.1"
|
|
23
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
24
|
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
|
25
|
+
|
|
26
|
+
[[package]]
|
|
27
|
+
name = "bumpalo"
|
|
28
|
+
version = "3.20.3"
|
|
29
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
30
|
+
checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
|
|
31
|
+
|
|
32
|
+
[[package]]
|
|
33
|
+
name = "cc"
|
|
34
|
+
version = "1.2.65"
|
|
35
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
36
|
+
checksum = "e228eec9be7c17ccb640b59b36a5cd805ea2a564a4c5e162c2f659fea30d3b96"
|
|
37
|
+
dependencies = [
|
|
38
|
+
"find-msvc-tools",
|
|
39
|
+
"shlex",
|
|
40
|
+
]
|
|
41
|
+
|
|
42
|
+
[[package]]
|
|
43
|
+
name = "cfg-if"
|
|
44
|
+
version = "1.0.4"
|
|
45
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
46
|
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
|
47
|
+
|
|
48
|
+
[[package]]
|
|
49
|
+
name = "chrono"
|
|
50
|
+
version = "0.4.45"
|
|
51
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
52
|
+
checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
|
|
53
|
+
dependencies = [
|
|
54
|
+
"iana-time-zone",
|
|
55
|
+
"js-sys",
|
|
56
|
+
"num-traits",
|
|
57
|
+
"wasm-bindgen",
|
|
58
|
+
"windows-link",
|
|
59
|
+
]
|
|
60
|
+
|
|
61
|
+
[[package]]
|
|
62
|
+
name = "core-foundation-sys"
|
|
63
|
+
version = "0.8.7"
|
|
64
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
65
|
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
|
66
|
+
|
|
67
|
+
[[package]]
|
|
68
|
+
name = "crossbeam-channel"
|
|
69
|
+
version = "0.5.15"
|
|
70
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
71
|
+
checksum = "82b8f8f868b36967f9606790d1903570de9ceaf870a7bf9fbbd3016d636a2cb2"
|
|
72
|
+
dependencies = [
|
|
73
|
+
"crossbeam-utils",
|
|
74
|
+
]
|
|
75
|
+
|
|
76
|
+
[[package]]
|
|
77
|
+
name = "crossbeam-utils"
|
|
78
|
+
version = "0.8.21"
|
|
79
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
80
|
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
|
81
|
+
|
|
82
|
+
[[package]]
|
|
83
|
+
name = "find-msvc-tools"
|
|
84
|
+
version = "0.1.9"
|
|
85
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
86
|
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|
87
|
+
|
|
88
|
+
[[package]]
|
|
89
|
+
name = "futures-core"
|
|
90
|
+
version = "0.3.32"
|
|
91
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
92
|
+
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
|
93
|
+
|
|
94
|
+
[[package]]
|
|
95
|
+
name = "futures-task"
|
|
96
|
+
version = "0.3.32"
|
|
97
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
98
|
+
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
|
|
99
|
+
|
|
100
|
+
[[package]]
|
|
101
|
+
name = "futures-util"
|
|
102
|
+
version = "0.3.32"
|
|
103
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
104
|
+
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
|
105
|
+
dependencies = [
|
|
106
|
+
"futures-core",
|
|
107
|
+
"futures-task",
|
|
108
|
+
"pin-project-lite",
|
|
109
|
+
"slab",
|
|
110
|
+
]
|
|
111
|
+
|
|
112
|
+
[[package]]
|
|
113
|
+
name = "heck"
|
|
114
|
+
version = "0.5.0"
|
|
115
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
116
|
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
117
|
+
|
|
118
|
+
[[package]]
|
|
119
|
+
name = "iana-time-zone"
|
|
120
|
+
version = "0.1.65"
|
|
121
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
122
|
+
checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
|
|
123
|
+
dependencies = [
|
|
124
|
+
"android_system_properties",
|
|
125
|
+
"core-foundation-sys",
|
|
126
|
+
"iana-time-zone-haiku",
|
|
127
|
+
"js-sys",
|
|
128
|
+
"log",
|
|
129
|
+
"wasm-bindgen",
|
|
130
|
+
"windows-core",
|
|
131
|
+
]
|
|
132
|
+
|
|
133
|
+
[[package]]
|
|
134
|
+
name = "iana-time-zone-haiku"
|
|
135
|
+
version = "0.1.2"
|
|
136
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
137
|
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
|
138
|
+
dependencies = [
|
|
139
|
+
"cc",
|
|
140
|
+
]
|
|
141
|
+
|
|
142
|
+
[[package]]
|
|
143
|
+
name = "indoc"
|
|
144
|
+
version = "2.0.7"
|
|
145
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
146
|
+
checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
|
|
147
|
+
dependencies = [
|
|
148
|
+
"rustversion",
|
|
149
|
+
]
|
|
150
|
+
|
|
151
|
+
[[package]]
|
|
152
|
+
name = "js-sys"
|
|
153
|
+
version = "0.3.103"
|
|
154
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
155
|
+
checksum = "53b44bfcdb3f8d5837a46dae1ca9660a837176eee74a28b229bc626816589102"
|
|
156
|
+
dependencies = [
|
|
157
|
+
"cfg-if",
|
|
158
|
+
"futures-util",
|
|
159
|
+
"wasm-bindgen",
|
|
160
|
+
]
|
|
161
|
+
|
|
162
|
+
[[package]]
|
|
163
|
+
name = "libc"
|
|
164
|
+
version = "0.2.186"
|
|
165
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
166
|
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
|
167
|
+
|
|
168
|
+
[[package]]
|
|
169
|
+
name = "log"
|
|
170
|
+
version = "0.4.33"
|
|
171
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
172
|
+
checksum = "0ceec5bc11778974d1bcb055b18002eba7f4b3518b6a0081b3af5f21666da9ad"
|
|
173
|
+
|
|
174
|
+
[[package]]
|
|
175
|
+
name = "memoffset"
|
|
176
|
+
version = "0.9.1"
|
|
177
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
178
|
+
checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
|
|
179
|
+
dependencies = [
|
|
180
|
+
"autocfg",
|
|
181
|
+
]
|
|
182
|
+
|
|
183
|
+
[[package]]
|
|
184
|
+
name = "nexuslog"
|
|
185
|
+
version = "0.4.4"
|
|
186
|
+
dependencies = [
|
|
187
|
+
"arrayvec",
|
|
188
|
+
"chrono",
|
|
189
|
+
"crossbeam-channel",
|
|
190
|
+
"log",
|
|
191
|
+
"pyo3",
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
[[package]]
|
|
195
|
+
name = "num-traits"
|
|
196
|
+
version = "0.2.19"
|
|
197
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
198
|
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
|
199
|
+
dependencies = [
|
|
200
|
+
"autocfg",
|
|
201
|
+
]
|
|
202
|
+
|
|
203
|
+
[[package]]
|
|
204
|
+
name = "once_cell"
|
|
205
|
+
version = "1.21.4"
|
|
206
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
207
|
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
|
208
|
+
|
|
209
|
+
[[package]]
|
|
210
|
+
name = "pin-project-lite"
|
|
211
|
+
version = "0.2.17"
|
|
212
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
213
|
+
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
|
214
|
+
|
|
215
|
+
[[package]]
|
|
216
|
+
name = "portable-atomic"
|
|
217
|
+
version = "1.13.1"
|
|
218
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
219
|
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
|
220
|
+
|
|
221
|
+
[[package]]
|
|
222
|
+
name = "proc-macro2"
|
|
223
|
+
version = "1.0.106"
|
|
224
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
225
|
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
226
|
+
dependencies = [
|
|
227
|
+
"unicode-ident",
|
|
228
|
+
]
|
|
229
|
+
|
|
230
|
+
[[package]]
|
|
231
|
+
name = "pyo3"
|
|
232
|
+
version = "0.27.2"
|
|
233
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
234
|
+
checksum = "ab53c047fcd1a1d2a8820fe84f05d6be69e9526be40cb03b73f86b6b03e6d87d"
|
|
235
|
+
dependencies = [
|
|
236
|
+
"indoc",
|
|
237
|
+
"libc",
|
|
238
|
+
"memoffset",
|
|
239
|
+
"once_cell",
|
|
240
|
+
"portable-atomic",
|
|
241
|
+
"pyo3-build-config",
|
|
242
|
+
"pyo3-ffi",
|
|
243
|
+
"pyo3-macros",
|
|
244
|
+
"unindent",
|
|
245
|
+
]
|
|
246
|
+
|
|
247
|
+
[[package]]
|
|
248
|
+
name = "pyo3-build-config"
|
|
249
|
+
version = "0.27.2"
|
|
250
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
251
|
+
checksum = "b455933107de8642b4487ed26d912c2d899dec6114884214a0b3bb3be9261ea6"
|
|
252
|
+
dependencies = [
|
|
253
|
+
"target-lexicon",
|
|
254
|
+
]
|
|
255
|
+
|
|
256
|
+
[[package]]
|
|
257
|
+
name = "pyo3-ffi"
|
|
258
|
+
version = "0.27.2"
|
|
259
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
260
|
+
checksum = "1c85c9cbfaddf651b1221594209aed57e9e5cff63c4d11d1feead529b872a089"
|
|
261
|
+
dependencies = [
|
|
262
|
+
"libc",
|
|
263
|
+
"pyo3-build-config",
|
|
264
|
+
]
|
|
265
|
+
|
|
266
|
+
[[package]]
|
|
267
|
+
name = "pyo3-macros"
|
|
268
|
+
version = "0.27.2"
|
|
269
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
270
|
+
checksum = "0a5b10c9bf9888125d917fb4d2ca2d25c8df94c7ab5a52e13313a07e050a3b02"
|
|
271
|
+
dependencies = [
|
|
272
|
+
"proc-macro2",
|
|
273
|
+
"pyo3-macros-backend",
|
|
274
|
+
"quote",
|
|
275
|
+
"syn",
|
|
276
|
+
]
|
|
277
|
+
|
|
278
|
+
[[package]]
|
|
279
|
+
name = "pyo3-macros-backend"
|
|
280
|
+
version = "0.27.2"
|
|
281
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
282
|
+
checksum = "03b51720d314836e53327f5871d4c0cfb4fb37cc2c4a11cc71907a86342c40f9"
|
|
283
|
+
dependencies = [
|
|
284
|
+
"heck",
|
|
285
|
+
"proc-macro2",
|
|
286
|
+
"pyo3-build-config",
|
|
287
|
+
"quote",
|
|
288
|
+
"syn",
|
|
289
|
+
]
|
|
290
|
+
|
|
291
|
+
[[package]]
|
|
292
|
+
name = "quote"
|
|
293
|
+
version = "1.0.46"
|
|
294
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
295
|
+
checksum = "dfbc457d0c7a0759a614551b11a6409e5951f6c7537be1f1b7682b9ae9230368"
|
|
296
|
+
dependencies = [
|
|
297
|
+
"proc-macro2",
|
|
298
|
+
]
|
|
299
|
+
|
|
300
|
+
[[package]]
|
|
301
|
+
name = "rustversion"
|
|
302
|
+
version = "1.0.22"
|
|
303
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
304
|
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
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 = "slab"
|
|
314
|
+
version = "0.4.12"
|
|
315
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
316
|
+
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
|
317
|
+
|
|
318
|
+
[[package]]
|
|
319
|
+
name = "syn"
|
|
320
|
+
version = "2.0.118"
|
|
321
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
322
|
+
checksum = "1b9ae57f904213ebb649ce6895b8a66c66f0203b9319718f69a5612a065b1422"
|
|
323
|
+
dependencies = [
|
|
324
|
+
"proc-macro2",
|
|
325
|
+
"quote",
|
|
326
|
+
"unicode-ident",
|
|
327
|
+
]
|
|
328
|
+
|
|
329
|
+
[[package]]
|
|
330
|
+
name = "target-lexicon"
|
|
331
|
+
version = "0.13.5"
|
|
332
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
333
|
+
checksum = "adb6935a6f5c20170eeceb1a3835a49e12e19d792f6dd344ccc76a985ca5a6ca"
|
|
334
|
+
|
|
335
|
+
[[package]]
|
|
336
|
+
name = "unicode-ident"
|
|
337
|
+
version = "1.0.24"
|
|
338
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
339
|
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
340
|
+
|
|
341
|
+
[[package]]
|
|
342
|
+
name = "unindent"
|
|
343
|
+
version = "0.2.4"
|
|
344
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
345
|
+
checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
|
|
346
|
+
|
|
347
|
+
[[package]]
|
|
348
|
+
name = "wasm-bindgen"
|
|
349
|
+
version = "0.2.126"
|
|
350
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
351
|
+
checksum = "4b067c0c11094aef6b7a801c1e34a26affafdf3d051dba08456b868789aaf9a4"
|
|
352
|
+
dependencies = [
|
|
353
|
+
"cfg-if",
|
|
354
|
+
"once_cell",
|
|
355
|
+
"rustversion",
|
|
356
|
+
"wasm-bindgen-macro",
|
|
357
|
+
"wasm-bindgen-shared",
|
|
358
|
+
]
|
|
359
|
+
|
|
360
|
+
[[package]]
|
|
361
|
+
name = "wasm-bindgen-macro"
|
|
362
|
+
version = "0.2.126"
|
|
363
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
364
|
+
checksum = "167ce5e579f6bcf889c4f7175a8a5a585de84e8ff93976ce393efa5f2837aab1"
|
|
365
|
+
dependencies = [
|
|
366
|
+
"quote",
|
|
367
|
+
"wasm-bindgen-macro-support",
|
|
368
|
+
]
|
|
369
|
+
|
|
370
|
+
[[package]]
|
|
371
|
+
name = "wasm-bindgen-macro-support"
|
|
372
|
+
version = "0.2.126"
|
|
373
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
374
|
+
checksum = "f3997c7839262f4ef12cf90b818d6340c18e80f263f1a94bf157d0ec4420380e"
|
|
375
|
+
dependencies = [
|
|
376
|
+
"bumpalo",
|
|
377
|
+
"proc-macro2",
|
|
378
|
+
"quote",
|
|
379
|
+
"syn",
|
|
380
|
+
"wasm-bindgen-shared",
|
|
381
|
+
]
|
|
382
|
+
|
|
383
|
+
[[package]]
|
|
384
|
+
name = "wasm-bindgen-shared"
|
|
385
|
+
version = "0.2.126"
|
|
386
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
387
|
+
checksum = "dc1b4cb0cc549fcf58d7dfc081778139b3d283a081644e833e84682ad71cea24"
|
|
388
|
+
dependencies = [
|
|
389
|
+
"unicode-ident",
|
|
390
|
+
]
|
|
391
|
+
|
|
392
|
+
[[package]]
|
|
393
|
+
name = "windows-core"
|
|
394
|
+
version = "0.62.2"
|
|
395
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
396
|
+
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
|
|
397
|
+
dependencies = [
|
|
398
|
+
"windows-implement",
|
|
399
|
+
"windows-interface",
|
|
400
|
+
"windows-link",
|
|
401
|
+
"windows-result",
|
|
402
|
+
"windows-strings",
|
|
403
|
+
]
|
|
404
|
+
|
|
405
|
+
[[package]]
|
|
406
|
+
name = "windows-implement"
|
|
407
|
+
version = "0.60.2"
|
|
408
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
409
|
+
checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
|
|
410
|
+
dependencies = [
|
|
411
|
+
"proc-macro2",
|
|
412
|
+
"quote",
|
|
413
|
+
"syn",
|
|
414
|
+
]
|
|
415
|
+
|
|
416
|
+
[[package]]
|
|
417
|
+
name = "windows-interface"
|
|
418
|
+
version = "0.59.3"
|
|
419
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
420
|
+
checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
|
|
421
|
+
dependencies = [
|
|
422
|
+
"proc-macro2",
|
|
423
|
+
"quote",
|
|
424
|
+
"syn",
|
|
425
|
+
]
|
|
426
|
+
|
|
427
|
+
[[package]]
|
|
428
|
+
name = "windows-link"
|
|
429
|
+
version = "0.2.1"
|
|
430
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
431
|
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
432
|
+
|
|
433
|
+
[[package]]
|
|
434
|
+
name = "windows-result"
|
|
435
|
+
version = "0.4.1"
|
|
436
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
437
|
+
checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
|
|
438
|
+
dependencies = [
|
|
439
|
+
"windows-link",
|
|
440
|
+
]
|
|
441
|
+
|
|
442
|
+
[[package]]
|
|
443
|
+
name = "windows-strings"
|
|
444
|
+
version = "0.5.1"
|
|
445
|
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
446
|
+
checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
|
|
447
|
+
dependencies = [
|
|
448
|
+
"windows-link",
|
|
449
|
+
]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
[package]
|
|
2
|
+
name = "nexuslog"
|
|
3
|
+
version = "0.4.4"
|
|
4
|
+
edition = "2021"
|
|
5
|
+
license = "MIT"
|
|
6
|
+
description = "Fast async logger with Python bindings"
|
|
7
|
+
repository = "https://github.com/river-walras/nexuslogger"
|
|
8
|
+
readme = "README.md"
|
|
9
|
+
keywords = ["logging", "async", "fast"]
|
|
10
|
+
categories = ["development-tools::debugging"]
|
|
11
|
+
|
|
12
|
+
[lib]
|
|
13
|
+
crate-type = ["cdylib", "rlib"]
|
|
14
|
+
|
|
15
|
+
[dependencies]
|
|
16
|
+
chrono = "0.4.43"
|
|
17
|
+
crossbeam-channel = "0.5.15"
|
|
18
|
+
log = { version = "0.4.29", features = ["std"] }
|
|
19
|
+
pyo3 = { version = "0.27.2", optional = true }
|
|
20
|
+
arrayvec = "0.7.4"
|
|
21
|
+
|
|
22
|
+
[features]
|
|
23
|
+
default = []
|
|
24
|
+
python = ["pyo3", "pyo3/extension-module"]
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 river-walras
|
|
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.
|