-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
82 lines (72 loc) · 4.44 KB
/
Cargo.toml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
[package]
name = "pg-to-sqlite3"
version = "0.1.0"
authors = ["Steven Kalt <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
clap = "2.33.3"
fallible-iterator = "0.2.0"
indicatif = "0.15.0"
petgraph = "0.5.1"
# the following crates are enabled by postgres, postgres_types, and rusqlite feature flags:
bit-vec = "0.6" # postgres(_types)?: with-bit-vec-0_6
chrono = "0.4" # postgres(_types)?: with-chrono-0_4, rusqlite: chrono
serde_json = "1.0" # postgres(_types)?: with-serde_json-1, rusqlite: serde_json
# time = "0.2" # postgres(_types)?: with-time-0_2, rusqlite: time
uuid = "0.8" # postgres(_types)?: with-uuid-0_8, rusqlite: uuid
# no geo_types; there's no rusqlite feature flag for them.
# validator = "0.12.0"
# termcolor = "1.1.0"
[dependencies.postgres]
version = "0.19.0"
# see https://docs.rs/postgres/0.19.0/postgres/#features
features = [
"with-bit-vec-0_6", # Enable support for the bit-vec crate.
"with-chrono-0_4", # Enable support for the chrono crate.
"with-serde_json-1", # Enable support for the serde_json crate.
"with-uuid-0_8", # Enable support for the uuid crate.
"with-time-0_2", # Enable support for the time crate.
]
[dependencies.postgres-types]
version = "0.2.0"
features = [
"with-bit-vec-0_6",
"with-chrono-0_4",
"with-serde_json-1",
"with-uuid-0_8",
"with-time-0_2",
]
[dependencies.rusqlite]
version = "0.24.2"
features = [
"bundled", # uses a bundled version of SQLite.
"chrono", # implements [`FromSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.FromSql.html)
# and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for various
# types from the [`chrono` crate](https://crates.io/crates/chrono).
"serde_json", # implements [`FromSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.FromSql.html)
# and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for the
# `Value` type from the [`serde_json` crate](https://crates.io/crates/serde_json).
"uuid", # allows storing and retrieving `Uuid` values from the [`uuid`](https://docs.rs/uuid/) crate using blobs.
## The following might be interesting later:
# "time", # implements [`FromSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.FromSql.html)
# # `time::OffsetDateTime` type from the [`time` crate](https://crates.io/crates/time).
# # and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for the
# "url", # implements [`FromSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.FromSql.html)
# # and [`ToSql`](https://docs.rs/rusqlite/~0/rusqlite/types/trait.ToSql.html) for the
# # `Url` type from the [`url` crate](https://crates.io/crates/url).
# "functions", # https://docs.rs/rusqlite/~0/rusqlite/functions/index.html
# # allows you to load Rust closures into SQLite connections for use in queries.
# # Note: This feature requires SQLite 3.7.3 or later.
# "blob", # https://docs.rs/rusqlite/~0/rusqlite/blob/index.html
# # gives `std::io::{Read, Write, Seek}` access to SQL BLOBs. Note: This feature
# # requires SQLite 3.7.4 or later. Also note: doesn't help with insertion, necessarily.
# "vtab", # for [virtual table](https://sqlite.org/vtab.html) support (allows you to write virtual table implementations in Rust). Currently, only read-only virtual tables are supported.
# "csvtab", # https://sqlite.org/csv.html, CSV virtual table written in Rust. (Implies `vtab`.)
# "series", # exposes [`generate_series(...)`](https://www.sqlite.org/series.html) Table-Valued Function. (Implies `vtab`.)
# "array", # https://sqlite.org/carray.html), The `rarray()` Table-Valued Function. (Implies `vtab`.)
# "i128_blob", # allows storing values of type `i128` type in SQLite databases. Internally, the data is stored as a 16 byte big-endian blob, with the most significant bit flipped, which allows ordering and comparison between different blobs storing i128s to work as expected.
# "load_extension", # https://docs.rs/rusqlite/~0/rusqlite/struct.LoadExtensionGuard.html) allows loading dynamic library-based SQLite extensions.
]
# https://github.com/johnthagen/min-sized-rust
# https://github.com/RazrFalcon/cargo-bloat