-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (42 loc) · 1.33 KB
/
Cargo.toml
File metadata and controls
52 lines (42 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "mongo-to-sqlite"
version = "0.1.0"
edition = "2021"
authors = ["Ppang0405 <nguyentruong.xyz0405@gmail.com>"]
description = "A CLI tool to migrate MongoDB databases to SQLite/LibSQL with schema inference"
license = "MIT"
repository = "https://github.com/Ppang0405/mongo-to-sqlite"
keywords = ["mongodb", "sqlite", "migration", "cli", "database"]
categories = ["command-line-utilities", "database"]
[[bin]]
name = "mongo-to-sqlite"
path = "src/main.rs"
[dependencies]
# CLI argument parsing
clap = { version = "4.5", features = ["derive", "env"] }
# LibSQL/SQLite
# Enable default features for TLS support (needed for Turso cloud)
libsql = { version = "0.9", features = ["core", "remote"] }
# MongoDB driver
mongodb = { version = "2.8", default-features = false, features = ["tokio-runtime"] }
# Async runtime
tokio = { version = "1.35", features = ["full"] }
# Serialization
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
bson = { version = "2.9", features = ["chrono-0_4"] }
# Error handling
anyhow = "1.0"
thiserror = "1.0"
# Logging
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] }
# Utilities
chrono = "0.4"
futures = "0.3"
async-stream = "0.3"
indicatif = { version = "0.17", features = ["tokio"] }
colored = "2.1"
dotenvy = "0.15"
[dev-dependencies]
tempfile = "3.8"