lunarphase-orm 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.
Files changed (39) hide show
  1. lunarphase_orm-0.1.0/.github/workflows/ci.yml +38 -0
  2. lunarphase_orm-0.1.0/.github/workflows/pypi-publish.yml +102 -0
  3. lunarphase_orm-0.1.0/.gitignore +48 -0
  4. lunarphase_orm-0.1.0/BENCHMARK.md +166 -0
  5. lunarphase_orm-0.1.0/Cargo.lock +261 -0
  6. lunarphase_orm-0.1.0/Cargo.toml +15 -0
  7. lunarphase_orm-0.1.0/DOCUMENTATION.md +390 -0
  8. lunarphase_orm-0.1.0/LICENSE +21 -0
  9. lunarphase_orm-0.1.0/PKG-INFO +186 -0
  10. lunarphase_orm-0.1.0/README.md +170 -0
  11. lunarphase_orm-0.1.0/ROADMAP.md +64 -0
  12. lunarphase_orm-0.1.0/benchmarks/advanced_scale_benchmark.py +137 -0
  13. lunarphase_orm-0.1.0/benchmarks/comprehensive_orm_benchmark.py +211 -0
  14. lunarphase_orm-0.1.0/benchmarks/diagnostic_3way_benchmark.py +57 -0
  15. lunarphase_orm-0.1.0/lunarphase/__init__.py +47 -0
  16. lunarphase_orm-0.1.0/lunarphase/cli/main.py +47 -0
  17. lunarphase_orm-0.1.0/lunarphase/core/ast.py +53 -0
  18. lunarphase_orm-0.1.0/lunarphase/core/fields.py +108 -0
  19. lunarphase_orm-0.1.0/lunarphase/core/model.py +178 -0
  20. lunarphase_orm-0.1.0/lunarphase/core/relations.py +113 -0
  21. lunarphase_orm-0.1.0/lunarphase/core/state.py +53 -0
  22. lunarphase_orm-0.1.0/lunarphase/core/uow.py +97 -0
  23. lunarphase_orm-0.1.0/lunarphase/db/engine.py +103 -0
  24. lunarphase_orm-0.1.0/lunarphase/query/batcher.py +53 -0
  25. lunarphase_orm-0.1.0/lunarphase/query/builder.py +151 -0
  26. lunarphase_orm-0.1.0/pyproject.toml +31 -0
  27. lunarphase_orm-0.1.0/src/batcher.rs +92 -0
  28. lunarphase_orm-0.1.0/src/compiler.rs +139 -0
  29. lunarphase_orm-0.1.0/src/lib.rs +19 -0
  30. lunarphase_orm-0.1.0/src/migration_diff.rs +104 -0
  31. lunarphase_orm-0.1.0/src/state_tracker.rs +163 -0
  32. lunarphase_orm-0.1.0/tests/test_benchmarks.py +100 -0
  33. lunarphase_orm-0.1.0/tests/test_coverage_boost.py +266 -0
  34. lunarphase_orm-0.1.0/tests/test_fase1_core_ast.py +59 -0
  35. lunarphase_orm-0.1.0/tests/test_fase2_async_drivers.py +46 -0
  36. lunarphase_orm-0.1.0/tests/test_fase3_auto_batching_relations.py +69 -0
  37. lunarphase_orm-0.1.0/tests/test_fase4_dirty_tracking_uow.py +69 -0
  38. lunarphase_orm-0.1.0/tests/test_fase5_auto_migrations_cli.py +36 -0
  39. lunarphase_orm-0.1.0/tests/test_rust_performance.py +58 -0
@@ -0,0 +1,38 @@
1
+ name: CI Test Suite
2
+
3
+ on:
4
+ push:
5
+ branches: [ main ]
6
+ pull_request:
7
+ branches: [ main ]
8
+
9
+ jobs:
10
+ test:
11
+ name: Run pytest & Rust tests on ${{ matrix.os }}
12
+ runs-on: ${{ matrix.os }}
13
+ strategy:
14
+ matrix:
15
+ os: [ubuntu-latest, macos-latest]
16
+ python-version: ['3.9', '3.10', '3.11', '3.12']
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Install Rust toolchain
22
+ uses: dtolnay/rust-toolchain@stable
23
+
24
+ - name: Set up Python ${{ matrix.python-version }}
25
+ uses: actions/setup-python@v5
26
+ with:
27
+ python-version: ${{ matrix.python-version }}
28
+
29
+ - name: Install dependencies & maturin
30
+ run: |
31
+ python -m pip install --upgrade pip
32
+ pip install maturin pytest pytest-cov aiosqlite pydantic
33
+
34
+ - name: Build Rust extension
35
+ run: maturin develop
36
+
37
+ - name: Run pytest test suite
38
+ run: pytest --cov=lunarphase --cov-report=term-missing
@@ -0,0 +1,102 @@
1
+ name: Publish to PyPI
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ push:
7
+ tags:
8
+ - 'v*'
9
+ workflow_dispatch:
10
+
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+
15
+ jobs:
16
+ build-wheels:
17
+ name: Build wheels on ${{ matrix.os }} (${{ matrix.target }})
18
+ runs-on: ${{ matrix.os }}
19
+ strategy:
20
+ fail-fast: false
21
+ matrix:
22
+ include:
23
+ # Linux x86_64 & aarch64
24
+ - os: ubuntu-latest
25
+ target: x86_64
26
+ - os: ubuntu-latest
27
+ target: aarch64
28
+
29
+ # macOS Apple Silicon (arm64) & Intel (x86_64)
30
+ - os: macos-15-intel
31
+ target: x86_64
32
+ - os: macos-14
33
+ target: aarch64
34
+
35
+ # Windows x86_64
36
+ - os: windows-latest
37
+ target: x64
38
+
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+
42
+ - uses: actions/setup-python@v5
43
+ with:
44
+ python-version: '3.9'
45
+
46
+ - name: Build wheels via Maturin Action
47
+ uses: PyO3/maturin-action@v1
48
+ with:
49
+ target: ${{ matrix.target }}
50
+ args: --release --out dist --find-interpreter
51
+ sccache: 'true'
52
+
53
+ - name: Upload wheel artifacts
54
+ uses: actions/upload-artifact@v4
55
+ with:
56
+ name: wheels-${{ matrix.os }}-${{ matrix.target }}
57
+ path: dist/*.whl
58
+
59
+ build-sdist:
60
+ name: Build source distribution (sdist)
61
+ runs-on: ubuntu-latest
62
+ steps:
63
+ - uses: actions/checkout@v4
64
+
65
+ - uses: actions/setup-python@v5
66
+ with:
67
+ python-version: '3.9'
68
+
69
+ - name: Build sdist via Maturin Action
70
+ uses: PyO3/maturin-action@v1
71
+ with:
72
+ command: sdist
73
+ args: --out dist
74
+
75
+ - name: Upload sdist artifact
76
+ uses: actions/upload-artifact@v4
77
+ with:
78
+ name: sdist
79
+ path: dist/*.tar.gz
80
+
81
+ publish-pypi:
82
+ name: Publish package to PyPI
83
+ runs-on: ubuntu-latest
84
+ needs: [build-wheels, build-sdist]
85
+
86
+ environment:
87
+ name: pypi
88
+ url: https://pypi.org/p/lunarphase-orm
89
+
90
+ steps:
91
+ - name: Download all build artifacts
92
+ uses: actions/download-artifact@v4
93
+ with:
94
+ path: dist
95
+ merge-multiple: true
96
+
97
+ - name: Publish package to PyPI
98
+ uses: pypa/gh-action-pypi-publish@release/v1
99
+ with:
100
+ user: __token__
101
+ password: ${{ secrets.PYPI_API_TOKEN }}
102
+ packages-dir: dist/
@@ -0,0 +1,48 @@
1
+ # Virtual Environments
2
+ .venv/
3
+ venv/
4
+ env/
5
+ ENV/
6
+ env.bak/
7
+ venv.bak/
8
+
9
+ # Rust Build Artifacts
10
+ target/
11
+ **/*.rs.bk
12
+
13
+ # Python Bytecode & Cache
14
+ __pycache__/
15
+ *.py[cod]
16
+ *$py.class
17
+ *.so
18
+
19
+ # Maturin & Build Artifacts
20
+ dist/
21
+ build/
22
+ wheels/
23
+ *.egg-info/
24
+ .eggs/
25
+
26
+ # Pytest & Coverage
27
+ .pytest_cache/
28
+ .coverage
29
+ .coverage.*
30
+ coverage.xml
31
+ htmlcov/
32
+
33
+ # Test Databases & Temporary Files
34
+ *.db
35
+ *.sqlite
36
+ *.sqlite3
37
+ test_cov.db
38
+ migrations/
39
+
40
+ # OS & IDE Files
41
+ .DS_Store
42
+ .AppleDouble
43
+ .LSOverride
44
+ Thumbs.db
45
+ .vscode/
46
+ .idea/
47
+ *.swp
48
+ *.swo
@@ -0,0 +1,166 @@
1
+ # 📊 LunarPhaseORM Performance & Memory Benchmarks
2
+
3
+ This document presents empirical benchmark results and technical performance metrics for **LunarPhaseORM (`v0.1.0`)**. Benchmarks measure execution speed, throughput, latency, and peak tracked memory across the Python ORM layer and native Rust extension (`_lunarphase_rs`).
4
+
5
+ > **Benchmark note:** Memory figures reported in this document represent **peak memory tracked by `tracemalloc`**, not total process RSS. They should therefore be interpreted as Python-tracked allocation footprints rather than absolute system RAM usage.
6
+
7
+ ---
8
+
9
+ ## 🖥 Environment & Test Specifications
10
+
11
+ - **OS**: macOS (Apple Silicon arm64)
12
+ - **Python**: CPython 3.14 (`abi3-py39` wheel compatibility)
13
+ - **Rust Engine**: Rust 1.80+ compiled with `--release` profile (`maturin develop --release`, LTO enabled)
14
+ - **Benchmark Tooling**: `pytest-benchmark 5.2.3`, `tracemalloc`, Python `time.perf_counter`
15
+
16
+ > For exact reproducibility, benchmark results should be interpreted together with the CPU model, macOS version, and available system memory of the test machine.
17
+
18
+ ---
19
+
20
+ ## 1. ⚡ StateTracker Performance & Peak Tracked Memory
21
+
22
+ Measures snapshot state initialization, property modification, dirty-diff calculation (`is_dirty`), and snapshot hydration across dataset scales from 10 to 100,000 model objects.
23
+
24
+ ### ⏱ Execution Time Benchmark
25
+
26
+ | Object Count | Pure Python Time | Rust Core Time | Speedup vs Python |
27
+ |---:|---:|---:|---:|
28
+ | **10** | 83 µs | **55 µs** | 🚀 **1.5× Faster** |
29
+ | **100** | 569 µs | **253 µs** | 🚀 **2.2× Faster** |
30
+ | **1,000** | 5.6 ms | **2.5 ms** | 🚀 **2.3× Faster** |
31
+ | **10,000** | 57.7 ms | **25.1 ms** | 🚀 **2.3× Faster** |
32
+ | **100,000** | 1.01 s | **311.0 ms** | 🚀 **3.2× Faster** |
33
+
34
+ ### 🧠 Peak Tracked Memory Benchmark
35
+
36
+ | Object Count | Python Tracked Memory | Rust Tracked Memory | Reduction |
37
+ |---:|---:|---:|---:|
38
+ | **10** | 3.2 KB | **1.2 KB** | 🧠 **63.4% Lower** |
39
+ | **100** | 46.3 KB | **6.8 KB** | 🧠 **85.3% Lower** |
40
+ | **1,000** | 454.9 KB | **63.8 KB** | 🧠 **86.0% Lower** |
41
+ | **10,000** | 4.43 MB | **630.6 KB** | 🧠 **86.1% Lower** |
42
+ | **100,000** | **44.25 MB** | **6.10 MB** | 🧠 **86.2% Lower** |
43
+
44
+ > **Technical Insight:** The Rust `StateTracker` stores state using a native `rustc_hash::FxHashMap<String, FieldEntry>` representation. In this benchmark, the Rust implementation reduced peak tracked memory by **86.2% at 100,000 objects**, corresponding to approximately **38.15 MB less tracked memory** than the Python implementation.
45
+
46
+ ---
47
+
48
+ ## 2. ⚡ BatchAggregator — Native Integer Foreign-Key Aggregation
49
+
50
+ Measures relation foreign-key collection and deduplication using single-pass batch ingestion and native numeric key storage (`FxHashSet<i64>`).
51
+
52
+ ### ⏱ Execution Time & Memory Benchmark
53
+
54
+ | Key Objects | Python Set Time | Rust Aggregator Time | Speedup vs Python | Tracked Memory Reduction |
55
+ |---:|---:|---:|---:|---:|
56
+ | **10** | 46 µs | **41 µs** | 🚀 **1.1× Faster** | 🧠 **70.4% Lower** |
57
+ | **100** | 47 µs | **42 µs** | 🚀 **1.1× Faster** | 🧠 **90.6% Lower** |
58
+ | **1,000** | 1.1 ms | **1.0 ms** | 🚀 **1.1× Faster** | 🧠 **55.7% Lower** |
59
+ | **10,000** | 10.2 ms | **1.2 ms** | 🚀 **8.6× Faster** | 🧠 **91.0% Lower** |
60
+ | **100,000** | **102.6 ms** | **2.6 ms** | 🚀 **38.8× Faster** | 🧠 **99.0% Lower** |
61
+
62
+ > **Technical Insight:** The optimized Rust implementation stores numeric foreign keys directly as `i64` values inside an `FxHashSet`, avoiding intermediate string representation. At 100,000 keys, the measured execution time decreased from **102.6 ms to 2.6 ms**, resulting in a **38.8× speedup** in this specific numeric-key aggregation workload.
63
+
64
+ ---
65
+
66
+ ## 3. 🚀 Model Hydration & Mass Instantiation
67
+
68
+ Measures the throughput of instantiating active ORM `Model` instances from raw database query rows (`dict`).
69
+
70
+ | Dataset Size | Duration | Throughput | Peak Tracked Memory |
71
+ |---:|---:|---:|---:|
72
+ | **1,000 Rows** | 6.1 ms | **163,393 ops/sec** | 145.3 KB |
73
+ | **10,000 Rows** | 60.5 ms | **165,168 ops/sec** | 1.38 MB |
74
+ | **100,000 Rows** | 704.5 ms | **141,937 ops/sec** | 13.73 MB |
75
+
76
+ > **Technical Insight:** LunarPhaseORM processed approximately **141,000 model hydration operations per second** at the 100,000-row scale, with **13.73 MB of peak tracked memory** recorded by the benchmark.
77
+
78
+ ---
79
+
80
+ ## 4. 🛠 Rust Schema Diff Engine
81
+
82
+ Measures the duration required by the native Rust `SchemaDiffEngine` to compare database schema introspection data against ORM model metadata and generate migration DDL statements.
83
+
84
+ | Table Column Count | Schema Diff Duration | Generated DDL |
85
+ |---:|---:|---:|
86
+ | **10 Columns** | **13 µs** | 5 `ALTER TABLE` Statements |
87
+ | **50 Columns** | **57 µs** | 5 `ALTER TABLE` Statements |
88
+ | **100 Columns** | **106 µs** | 5 `ALTER TABLE` Statements |
89
+ | **500 Columns** | **502 µs** | 5 `ALTER TABLE` Statements |
90
+
91
+ > **Technical Insight:** The Rust schema comparison and DDL-generation stage completed in **502 µs for a 500-column schema** in this benchmark. The measurement covers schema comparison and DDL generation; it does **not** include database connection, lock acquisition, disk I/O, or execution of the generated SQL statements.
92
+
93
+ ---
94
+
95
+ ## 5. 🔄 Unit of Work & Identity Map Transactions
96
+
97
+ Measures atomic transaction session handling (`async with uow.begin()`) together with identity-map registration across different record counts.
98
+
99
+ | Records in Session | Transaction Session Duration | Transaction Model |
100
+ |---:|---:|---|
101
+ | **100 Records** | 13.2 ms | Atomic Batch Transaction |
102
+ | **1,000 Records** | 131.9 ms | Atomic Batch Transaction |
103
+ | **5,000 Records** | 649.2 ms | Atomic Batch Transaction |
104
+
105
+ > **Technical Insight:** The measured transaction workload demonstrates approximately linear scaling across the tested record counts while maintaining atomic transaction semantics and identity-map registration.
106
+
107
+ ---
108
+
109
+ ## 6. 🎯 N+1 Query Resolution
110
+
111
+ Compares sequential relation access against automatic micro-task batching through `DeferredAutoBatcher`.
112
+
113
+ | Query Approach | SQL Queries | Execution Time | Result |
114
+ |---|---:|---:|---:|
115
+ | **Sequential N+1 Access** | 100 | 16.7 ms | Baseline |
116
+ | **Deferred Auto-Batcher** | **1** | **3.3 ms** | 🚀 **5.1× Faster** |
117
+
118
+ ### Observed Results
119
+
120
+ - **5.1× faster** execution in the benchmark.
121
+ - Approximately **80.2% lower measured latency**.
122
+ - SQL round trips reduced from **100 → 1**, representing **99% fewer query round trips** in this workload.
123
+
124
+ > **Technical Insight:** `DeferredAutoBatcher` consolidates deferred relation accesses into a single batch query, substantially reducing the number of database round trips. The benchmark measures query execution latency; actual network-byte reduction depends on query payload and database response sizes.
125
+
126
+ ---
127
+
128
+ # 📈 Summary of Key Results
129
+
130
+ | Component | Key Result |
131
+ |---|---|
132
+ | **StateTracker** | **3.2× faster** at 100K objects |
133
+ | **StateTracker Memory** | **86.2% lower tracked memory** at 100K |
134
+ | **BatchAggregator** | **38.8× faster** at 100K numeric keys |
135
+ | **BatchAggregator Memory** | **99.0% lower tracked memory** at 100K |
136
+ | **Model Hydration** | **141,937 ops/sec** at 100K rows |
137
+ | **SchemaDiffEngine** | **502 µs** for 500-column schema diff |
138
+ | **UnitOfWork** | Approximately linear scaling through 5K records |
139
+ | **N+1 Auto-Batching** | **5.1× faster**, 100 → 1 SQL round trip |
140
+
141
+ ---
142
+
143
+ # 💻 How to Reproduce Benchmarks
144
+
145
+ Run the benchmark scripts locally inside the project virtual environment:
146
+
147
+ ```bash
148
+ # 1. Compile Rust Core with Release Optimizations
149
+ maturin develop --release
150
+
151
+ # 2. Run pytest-benchmark Suite
152
+ pytest tests/test_benchmarks.py \
153
+ --benchmark-only \
154
+ --benchmark-sort=mean
155
+
156
+ # 3. Run Advanced Multi-Scale Benchmark
157
+ python benchmarks/advanced_scale_benchmark.py
158
+
159
+ # 4. Run 3-Way Diagnostic Benchmark
160
+ python benchmarks/diagnostic_3way_benchmark.py
161
+
162
+ # 5. Run Comprehensive ORM Benchmark Suite
163
+ python benchmarks/comprehensive_orm_benchmark.py
164
+ ```
165
+
166
+ > **Methodology:** Results are empirical measurements from the specified test environment. Benchmark results may vary depending on CPU architecture, operating-system scheduling, Python build, compiler configuration, database environment, and system workload. Comparative claims should therefore be reproduced under identical conditions before being generalized to other environments.
@@ -0,0 +1,261 @@
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.4"
14
+ source = "registry+https://github.com/rust-lang/crates.io-index"
15
+ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
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.7"
26
+ source = "registry+https://github.com/rust-lang/crates.io-index"
27
+ checksum = "79cf5c93f93228cf8efb3ba362535fb11199ac548a09ce117c9b1adc3030d706"
28
+ dependencies = [
29
+ "rustversion",
30
+ ]
31
+
32
+ [[package]]
33
+ name = "itoa"
34
+ version = "1.0.18"
35
+ source = "registry+https://github.com/rust-lang/crates.io-index"
36
+ checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
37
+
38
+ [[package]]
39
+ name = "libc"
40
+ version = "0.2.189"
41
+ source = "registry+https://github.com/rust-lang/crates.io-index"
42
+ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
43
+
44
+ [[package]]
45
+ name = "lunarphase_rs"
46
+ version = "0.1.0"
47
+ dependencies = [
48
+ "pyo3",
49
+ "rustc-hash",
50
+ "serde",
51
+ "serde_json",
52
+ ]
53
+
54
+ [[package]]
55
+ name = "memchr"
56
+ version = "2.8.3"
57
+ source = "registry+https://github.com/rust-lang/crates.io-index"
58
+ checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
59
+
60
+ [[package]]
61
+ name = "memoffset"
62
+ version = "0.9.1"
63
+ source = "registry+https://github.com/rust-lang/crates.io-index"
64
+ checksum = "488016bfae457b036d996092f6cb448677611ce4449e970ceaf42695203f218a"
65
+ dependencies = [
66
+ "autocfg",
67
+ ]
68
+
69
+ [[package]]
70
+ name = "once_cell"
71
+ version = "1.21.4"
72
+ source = "registry+https://github.com/rust-lang/crates.io-index"
73
+ checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
74
+
75
+ [[package]]
76
+ name = "portable-atomic"
77
+ version = "1.15.0"
78
+ source = "registry+https://github.com/rust-lang/crates.io-index"
79
+ checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
80
+
81
+ [[package]]
82
+ name = "proc-macro2"
83
+ version = "1.0.107"
84
+ source = "registry+https://github.com/rust-lang/crates.io-index"
85
+ checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
86
+ dependencies = [
87
+ "unicode-ident",
88
+ ]
89
+
90
+ [[package]]
91
+ name = "pyo3"
92
+ version = "0.22.6"
93
+ source = "registry+https://github.com/rust-lang/crates.io-index"
94
+ checksum = "f402062616ab18202ae8319da13fa4279883a2b8a9d9f83f20dbade813ce1884"
95
+ dependencies = [
96
+ "cfg-if",
97
+ "indoc",
98
+ "libc",
99
+ "memoffset",
100
+ "once_cell",
101
+ "portable-atomic",
102
+ "pyo3-build-config",
103
+ "pyo3-ffi",
104
+ "pyo3-macros",
105
+ "unindent",
106
+ ]
107
+
108
+ [[package]]
109
+ name = "pyo3-build-config"
110
+ version = "0.22.6"
111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
112
+ checksum = "b14b5775b5ff446dd1056212d778012cbe8a0fbffd368029fd9e25b514479c38"
113
+ dependencies = [
114
+ "once_cell",
115
+ "target-lexicon",
116
+ ]
117
+
118
+ [[package]]
119
+ name = "pyo3-ffi"
120
+ version = "0.22.6"
121
+ source = "registry+https://github.com/rust-lang/crates.io-index"
122
+ checksum = "9ab5bcf04a2cdcbb50c7d6105de943f543f9ed92af55818fd17b660390fc8636"
123
+ dependencies = [
124
+ "libc",
125
+ "pyo3-build-config",
126
+ ]
127
+
128
+ [[package]]
129
+ name = "pyo3-macros"
130
+ version = "0.22.6"
131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
132
+ checksum = "0fd24d897903a9e6d80b968368a34e1525aeb719d568dba8b3d4bfa5dc67d453"
133
+ dependencies = [
134
+ "proc-macro2",
135
+ "pyo3-macros-backend",
136
+ "quote",
137
+ "syn 2.0.119",
138
+ ]
139
+
140
+ [[package]]
141
+ name = "pyo3-macros-backend"
142
+ version = "0.22.6"
143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
144
+ checksum = "36c011a03ba1e50152b4b394b479826cad97e7a21eb52df179cd91ac411cbfbe"
145
+ dependencies = [
146
+ "heck",
147
+ "proc-macro2",
148
+ "pyo3-build-config",
149
+ "quote",
150
+ "syn 2.0.119",
151
+ ]
152
+
153
+ [[package]]
154
+ name = "quote"
155
+ version = "1.0.47"
156
+ source = "registry+https://github.com/rust-lang/crates.io-index"
157
+ checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
158
+ dependencies = [
159
+ "proc-macro2",
160
+ ]
161
+
162
+ [[package]]
163
+ name = "rustc-hash"
164
+ version = "2.1.3"
165
+ source = "registry+https://github.com/rust-lang/crates.io-index"
166
+ checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
167
+
168
+ [[package]]
169
+ name = "rustversion"
170
+ version = "1.0.23"
171
+ source = "registry+https://github.com/rust-lang/crates.io-index"
172
+ checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
173
+
174
+ [[package]]
175
+ name = "serde"
176
+ version = "1.0.229"
177
+ source = "registry+https://github.com/rust-lang/crates.io-index"
178
+ checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
179
+ dependencies = [
180
+ "serde_core",
181
+ "serde_derive",
182
+ ]
183
+
184
+ [[package]]
185
+ name = "serde_core"
186
+ version = "1.0.229"
187
+ source = "registry+https://github.com/rust-lang/crates.io-index"
188
+ checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
189
+ dependencies = [
190
+ "serde_derive",
191
+ ]
192
+
193
+ [[package]]
194
+ name = "serde_derive"
195
+ version = "1.0.229"
196
+ source = "registry+https://github.com/rust-lang/crates.io-index"
197
+ checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
198
+ dependencies = [
199
+ "proc-macro2",
200
+ "quote",
201
+ "syn 3.0.3",
202
+ ]
203
+
204
+ [[package]]
205
+ name = "serde_json"
206
+ version = "1.0.151"
207
+ source = "registry+https://github.com/rust-lang/crates.io-index"
208
+ checksum = "c841b55ecdae098c80dcae9cf767f6f8a0c2cdb3416bbef72181df4d0fe73f14"
209
+ dependencies = [
210
+ "itoa",
211
+ "memchr",
212
+ "serde",
213
+ "serde_core",
214
+ "zmij",
215
+ ]
216
+
217
+ [[package]]
218
+ name = "syn"
219
+ version = "2.0.119"
220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
221
+ checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
222
+ dependencies = [
223
+ "proc-macro2",
224
+ "quote",
225
+ "unicode-ident",
226
+ ]
227
+
228
+ [[package]]
229
+ name = "syn"
230
+ version = "3.0.3"
231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
232
+ checksum = "53e9bae58849f64dfa4f5d5ae372c8341f7305f82a3868709269343628b659a3"
233
+ dependencies = [
234
+ "proc-macro2",
235
+ "quote",
236
+ "unicode-ident",
237
+ ]
238
+
239
+ [[package]]
240
+ name = "target-lexicon"
241
+ version = "0.12.16"
242
+ source = "registry+https://github.com/rust-lang/crates.io-index"
243
+ checksum = "61c41af27dd6d1e27b1b16b489db798443478cef1f06a660c96db617ba5de3b1"
244
+
245
+ [[package]]
246
+ name = "unicode-ident"
247
+ version = "1.0.24"
248
+ source = "registry+https://github.com/rust-lang/crates.io-index"
249
+ checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
250
+
251
+ [[package]]
252
+ name = "unindent"
253
+ version = "0.2.4"
254
+ source = "registry+https://github.com/rust-lang/crates.io-index"
255
+ checksum = "7264e107f553ccae879d21fbea1d6724ac785e8c3bfc762137959b5802826ef3"
256
+
257
+ [[package]]
258
+ name = "zmij"
259
+ version = "1.0.23"
260
+ source = "registry+https://github.com/rust-lang/crates.io-index"
261
+ checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
@@ -0,0 +1,15 @@
1
+ [package]
2
+ name = "lunarphase_rs"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ readme = "README.md"
6
+
7
+ [lib]
8
+ name = "_lunarphase_rs"
9
+ crate-type = ["cdylib"]
10
+
11
+ [dependencies]
12
+ pyo3 = { version = "0.22.6", features = ["extension-module", "abi3-py39"] }
13
+ serde = { version = "1.0", features = ["derive"] }
14
+ serde_json = "1.0"
15
+ rustc-hash = "2.0"