mirror of
https://github.com/Llewellynvdm/exa.git
synced 2024-11-17 17:55:11 +00:00
110a1c716b
This commit removes the 'main' function present in main.rs, renames it to exa.rs, and puts the 'main' function in its own binary. This, I think, makes it more clear how the program works and where the main entry point is. Librarification also means that we can start testing as a whole. Two tests have been added that test everything, passing in raw command-line arguments then comparing against the binary coloured text that gets produced. Casualties include having to specifically mark some code blocks in documentation as 'tests', as rustdoc kept on trying to execute my ANSI art.
45 lines
711 B
TOML
45 lines
711 B
TOML
[package]
|
|
name = "exa"
|
|
version = "0.4.0"
|
|
authors = [ "ogham@bsago.me" ]
|
|
|
|
[[bin]]
|
|
name = "exa"
|
|
path = "src/bin/main.rs"
|
|
|
|
[lib]
|
|
name = "exa"
|
|
path = "src/exa.rs"
|
|
|
|
[dependencies]
|
|
ansi_term = "0.7.1"
|
|
bitflags = "0.1"
|
|
datetime = "0.4.3"
|
|
getopts = "0.2.14"
|
|
lazy_static = "0.1.*"
|
|
libc = "0.2.9"
|
|
locale = "0.2.1"
|
|
natord = "1.0.7"
|
|
num_cpus = "0.2.7"
|
|
number_prefix = "0.2.3"
|
|
scoped_threadpool = "0.1.*"
|
|
term_grid = "0.1.2"
|
|
unicode-width = "0.1.3"
|
|
users = "0.5.1"
|
|
|
|
[features]
|
|
default = [ "git" ]
|
|
git = [ "git2" ]
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
debug = false
|
|
lto = true
|
|
|
|
[dependencies.git2]
|
|
version = "0.3.2"
|
|
optional = true
|
|
|
|
[dependencies.zoneinfo_compiled]
|
|
git = "https://github.com/rust-datetime/zoneinfo-compiled.git"
|