mirror of
https://github.com/mii443/rustysecrets-cli.git
synced 2025-08-22 16:25:32 +00:00
compilable
This commit is contained in:
861
Cargo.lock
generated
861
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -17,21 +17,20 @@ name = "rustysecrets"
|
|||||||
path = "src/main.rs"
|
path = "src/main.rs"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rusty_secrets = "=0.2.1"
|
rusty_secrets = { git = "https://github.com/mii443/RustySecrets" }
|
||||||
clap = "^2.26"
|
clap = "^2.26"
|
||||||
colored = "^1.5"
|
colored = "^2.1.0"
|
||||||
error-chain = "^0.11.0"
|
error-chain = "^0.12.4"
|
||||||
mime = "^0.3"
|
mime = "^0.3"
|
||||||
log = { version = "^0.4", features = ["std"] }
|
log = { version = "^0.4", features = ["std"] }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
tempdir = "^0.3"
|
tempdir = "^0.3"
|
||||||
colored = "^1.5"
|
colored = "^2.1.0"
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
clap = "^2.26"
|
clap = "^2.26"
|
||||||
mime = "^0.3"
|
mime = "^0.3"
|
||||||
git-build-version = "^0.1"
|
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
|
11
build.rs
11
build.rs
@ -1,19 +1,16 @@
|
|||||||
|
|
||||||
extern crate git_build_version;
|
|
||||||
extern crate mime;
|
|
||||||
extern crate clap;
|
extern crate clap;
|
||||||
|
extern crate mime;
|
||||||
|
|
||||||
use clap::Shell;
|
use clap::Shell;
|
||||||
|
|
||||||
use std::env;
|
use std::env;
|
||||||
use std::path::Path;
|
|
||||||
use std::fs;
|
use std::fs;
|
||||||
|
use std::path::Path;
|
||||||
|
|
||||||
include!("src/cli.rs");
|
include!("src/cli.rs");
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
gen_completions();
|
gen_completions();
|
||||||
expose_git_describe();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fn gen_completions() {
|
fn gen_completions() {
|
||||||
@ -34,7 +31,3 @@ fn gen_completions() {
|
|||||||
app.gen_completions("rustysecrets", Shell::Fish, &path);
|
app.gen_completions("rustysecrets", Shell::Fish, &path);
|
||||||
// app.gen_completions("rustysecrets", Shell::PowerShell, &outdir);
|
// app.gen_completions("rustysecrets", Shell::PowerShell, &outdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn expose_git_describe() {
|
|
||||||
git_build_version::write_version(".").expect("Saving git version");
|
|
||||||
}
|
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
include!(concat!(env!("OUT_DIR"), "/version.rs"));
|
|
||||||
|
|
||||||
pub(crate) fn get() -> &'static str {
|
pub(crate) fn get() -> &'static str {
|
||||||
VERSION
|
"v0.2.1-pre"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user