-
Notifications
You must be signed in to change notification settings - Fork 1
/
Cargo.toml
44 lines (38 loc) · 1.38 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
[package]
name = "forne"
version = "0.1.5"
edition = "2021"
description = "A Turing-complete but dead-simple spaced repetition CLI that helps you learn stuff."
authors = ["arctic-hen7 <[email protected]>"]
license = "MIT"
repository = "https://github.com/arctic-hen7/forne"
readme = "README.md"
keywords = ["learning", "spaced-repetition", "cli", "education"]
categories = ["command-line-utilities"]
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
fancy-regex = "0.10"
serde = { version = "1", features = [ "derive" ] }
serde_json = "1"
anyhow = "1"
rand = "0.8"
lazy_static = "1"
rhai = { version = "1.14.0", features = ["serde", "sync"] }
include_dir = "0.7.3"
uuid = { version = "1.3.2", features = ["v4", "serde"] }
# CLI-only dependencies
termcolor = { version = "1", optional = true }
clap = { version = "4.2.7", features = ["derive"], optional = true }
whoami = { version = "1.4.0", optional = true }
crossterm = { version = "0.26", optional = true }
[lib]
name = "forne"
path = "src/lib.rs"
[[bin]]
name = "forne"
path = "src/bin/main.rs"
[features]
default = [ "cli" ] # Necessary because we can't have binary-only features
# Enable dependencies and features for the CLI only. This unfortunately has to pollute the library, because Cargo does not support
# separate binary dependencies.
cli = ["clap", "whoami", "termcolor", "crossterm"]