dirsql 0.1.9__tar.gz → 0.1.10__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 (41) hide show
  1. {dirsql-0.1.9 → dirsql-0.1.10}/Cargo.lock +90 -0
  2. {dirsql-0.1.9 → dirsql-0.1.10}/PKG-INFO +1 -1
  3. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/Cargo.toml +15 -0
  4. dirsql-0.1.10/packages/rust/src/bin/dirsql.rs +26 -0
  5. {dirsql-0.1.9 → dirsql-0.1.10}/pyproject.toml +1 -1
  6. {dirsql-0.1.9 → dirsql-0.1.10}/Cargo.toml +0 -0
  7. {dirsql-0.1.9 → dirsql-0.1.10}/README.md +0 -0
  8. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/Cargo.toml +0 -0
  9. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/README.md +0 -0
  10. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/src/lib.rs +0 -0
  11. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/__init__.py +0 -0
  12. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/conftest.py +0 -0
  13. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/__init__.py +0 -0
  14. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/test_async_dirsql.py +0 -0
  15. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/test_binding.py +0 -0
  16. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/test_dirsql.py +0 -0
  17. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/test_docs_examples.py +0 -0
  18. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/test_docs_gaps.py +0 -0
  19. {dirsql-0.1.9 → dirsql-0.1.10}/packages/python/tests/integration/test_from_config.py +0 -0
  20. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/README.md +0 -0
  21. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/benches/db_bench.rs +0 -0
  22. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/benches/differ_bench.rs +0 -0
  23. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/benches/matcher_bench.rs +0 -0
  24. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/benches/scanner_bench.rs +0 -0
  25. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/config.rs +0 -0
  26. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/db.rs +0 -0
  27. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/differ.rs +0 -0
  28. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/lib.rs +0 -0
  29. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/matcher.rs +0 -0
  30. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/parser.rs +0 -0
  31. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/scanner.rs +0 -0
  32. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/src/watcher.rs +0 -0
  33. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/tests/async_sdk.rs +0 -0
  34. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/tests/docs_examples.rs +0 -0
  35. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/tests/docs_gaps.rs +0 -0
  36. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/tests/from_config.rs +0 -0
  37. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/tests/readonly_query.rs +0 -0
  38. {dirsql-0.1.9 → dirsql-0.1.10}/packages/rust/tests/sdk.rs +0 -0
  39. {dirsql-0.1.9 → dirsql-0.1.10}/python/dirsql/__init__.py +0 -0
  40. {dirsql-0.1.9 → dirsql-0.1.10}/python/dirsql/_async.py +0 -0
  41. {dirsql-0.1.9 → dirsql-0.1.10}/python/dirsql/test_async.py +0 -0
@@ -17,12 +17,56 @@ version = "0.1.6"
17
17
  source = "registry+https://github.com/rust-lang/crates.io-index"
18
18
  checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
19
19
 
20
+ [[package]]
21
+ name = "anstream"
22
+ version = "1.0.0"
23
+ source = "registry+https://github.com/rust-lang/crates.io-index"
24
+ checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
25
+ dependencies = [
26
+ "anstyle",
27
+ "anstyle-parse",
28
+ "anstyle-query",
29
+ "anstyle-wincon",
30
+ "colorchoice",
31
+ "is_terminal_polyfill",
32
+ "utf8parse",
33
+ ]
34
+
20
35
  [[package]]
21
36
  name = "anstyle"
22
37
  version = "1.0.14"
23
38
  source = "registry+https://github.com/rust-lang/crates.io-index"
24
39
  checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
25
40
 
41
+ [[package]]
42
+ name = "anstyle-parse"
43
+ version = "1.0.0"
44
+ source = "registry+https://github.com/rust-lang/crates.io-index"
45
+ checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
46
+ dependencies = [
47
+ "utf8parse",
48
+ ]
49
+
50
+ [[package]]
51
+ name = "anstyle-query"
52
+ version = "1.1.5"
53
+ source = "registry+https://github.com/rust-lang/crates.io-index"
54
+ checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
55
+ dependencies = [
56
+ "windows-sys 0.61.2",
57
+ ]
58
+
59
+ [[package]]
60
+ name = "anstyle-wincon"
61
+ version = "3.0.11"
62
+ source = "registry+https://github.com/rust-lang/crates.io-index"
63
+ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
64
+ dependencies = [
65
+ "anstyle",
66
+ "once_cell_polyfill",
67
+ "windows-sys 0.61.2",
68
+ ]
69
+
26
70
  [[package]]
27
71
  name = "anyhow"
28
72
  version = "1.0.102"
@@ -119,6 +163,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
119
163
  checksum = "b193af5b67834b676abd72466a96c1024e6a6ad978a1f484bd90b85c94041351"
120
164
  dependencies = [
121
165
  "clap_builder",
166
+ "clap_derive",
122
167
  ]
123
168
 
124
169
  [[package]]
@@ -127,8 +172,22 @@ version = "4.6.0"
127
172
  source = "registry+https://github.com/rust-lang/crates.io-index"
128
173
  checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
129
174
  dependencies = [
175
+ "anstream",
130
176
  "anstyle",
131
177
  "clap_lex",
178
+ "strsim",
179
+ ]
180
+
181
+ [[package]]
182
+ name = "clap_derive"
183
+ version = "4.6.0"
184
+ source = "registry+https://github.com/rust-lang/crates.io-index"
185
+ checksum = "1110bd8a634a1ab8cb04345d8d878267d57c3cf1b38d91b71af6686408bbca6a"
186
+ dependencies = [
187
+ "heck",
188
+ "proc-macro2",
189
+ "quote",
190
+ "syn",
132
191
  ]
133
192
 
134
193
  [[package]]
@@ -137,6 +196,12 @@ version = "1.1.0"
137
196
  source = "registry+https://github.com/rust-lang/crates.io-index"
138
197
  checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
139
198
 
199
+ [[package]]
200
+ name = "colorchoice"
201
+ version = "1.0.5"
202
+ source = "registry+https://github.com/rust-lang/crates.io-index"
203
+ checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
204
+
140
205
  [[package]]
141
206
  name = "convert_case"
142
207
  version = "0.11.0"
@@ -254,6 +319,7 @@ checksum = "52560adf09603e58c9a7ee1fe1dcb95a16927b17c127f0ac02d6e768a0e25bc1"
254
319
  name = "dirsql"
255
320
  version = "0.1.0"
256
321
  dependencies = [
322
+ "clap",
257
323
  "criterion",
258
324
  "csv",
259
325
  "futures-channel",
@@ -598,6 +664,12 @@ dependencies = [
598
664
  "windows-sys 0.61.2",
599
665
  ]
600
666
 
667
+ [[package]]
668
+ name = "is_terminal_polyfill"
669
+ version = "1.70.2"
670
+ source = "registry+https://github.com/rust-lang/crates.io-index"
671
+ checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
672
+
601
673
  [[package]]
602
674
  name = "itertools"
603
675
  version = "0.10.5"
@@ -826,6 +898,12 @@ version = "1.21.4"
826
898
  source = "registry+https://github.com/rust-lang/crates.io-index"
827
899
  checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
828
900
 
901
+ [[package]]
902
+ name = "once_cell_polyfill"
903
+ version = "1.70.2"
904
+ source = "registry+https://github.com/rust-lang/crates.io-index"
905
+ checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
906
+
829
907
  [[package]]
830
908
  name = "oorandom"
831
909
  version = "11.1.5"
@@ -1187,6 +1265,12 @@ version = "1.15.1"
1187
1265
  source = "registry+https://github.com/rust-lang/crates.io-index"
1188
1266
  checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
1189
1267
 
1268
+ [[package]]
1269
+ name = "strsim"
1270
+ version = "0.11.1"
1271
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1272
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1273
+
1190
1274
  [[package]]
1191
1275
  name = "syn"
1192
1276
  version = "2.0.117"
@@ -1333,6 +1417,12 @@ version = "0.2.11"
1333
1417
  source = "registry+https://github.com/rust-lang/crates.io-index"
1334
1418
  checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
1335
1419
 
1420
+ [[package]]
1421
+ name = "utf8parse"
1422
+ version = "0.2.2"
1423
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1424
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
1425
+
1336
1426
  [[package]]
1337
1427
  name = "vcpkg"
1338
1428
  version = "0.2.15"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dirsql
3
- Version: 0.1.9
3
+ Version: 0.1.10
4
4
  Requires-Dist: pytest>=8 ; extra == 'dev'
5
5
  Requires-Dist: pytest-describe>=2 ; extra == 'dev'
6
6
  Requires-Dist: pytest-asyncio>=0.23 ; extra == 'dev'
@@ -7,7 +7,14 @@ license.workspace = true
7
7
  repository.workspace = true
8
8
  readme = "README.md"
9
9
 
10
+ [features]
11
+ default = []
12
+ # Opt-in CLI. Library consumers (`cargo add dirsql`) pull zero CLI deps.
13
+ # CLI install: `cargo install dirsql --features cli`.
14
+ cli = ["dep:clap"]
15
+
10
16
  [dependencies]
17
+ clap = { version = "4", features = ["derive"], optional = true }
11
18
  csv = "1"
12
19
  futures-channel.workspace = true
13
20
  globset = "0.4"
@@ -22,6 +29,14 @@ tokio.workspace = true
22
29
  toml = "0.8"
23
30
  walkdir = "2"
24
31
 
32
+ [[bin]]
33
+ name = "dirsql"
34
+ path = "src/bin/dirsql.rs"
35
+ required-features = ["cli"]
36
+
37
+ [package.metadata.docs.rs]
38
+ no-default-features = true
39
+
25
40
  [dev-dependencies]
26
41
  criterion = { version = "0.5", features = ["html_reports"] }
27
42
  futures-executor = "0.3"
@@ -0,0 +1,26 @@
1
+ //! `dirsql` CLI binary. Server implementation (POST /query, GET /events SSE,
2
+ //! graceful shutdown) lands in a follow-up PR tracked by #105. This stub
3
+ //! exists so downstream distribution channels (cargo-dist, npm launcher, pypi
4
+ //! launcher) have a stable bin target to package, and so the `cli` feature
5
+ //! flag is exercised end-to-end (compile + run) before the heavier server
6
+ //! dependencies land.
7
+
8
+ use clap::Parser;
9
+ use std::process::ExitCode;
10
+
11
+ #[derive(Debug, Parser)]
12
+ #[command(
13
+ name = "dirsql",
14
+ version,
15
+ about = "Ephemeral SQL index over a local directory (CLI).",
16
+ long_about = "Runs an HTTP server exposing a SQL view of a directory. \
17
+ Server implementation is tracked in #105; this stub \
18
+ currently prints --version / --help and exits."
19
+ )]
20
+ struct Cli {}
21
+
22
+ fn main() -> ExitCode {
23
+ let _ = Cli::parse();
24
+ eprintln!("dirsql: server not yet implemented (tracking #105)");
25
+ ExitCode::from(2)
26
+ }
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "dirsql"
7
- version = "0.1.9"
7
+ version = "0.1.10"
8
8
  description = "Ephemeral SQL index over a local directory"
9
9
  license = "MIT"
10
10
  requires-python = ">=3.12"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes