compilable

This commit is contained in:
mii
2024-04-08 17:13:30 +09:00
parent cf3e4f5274
commit 0864bf5898
4 changed files with 444 additions and 441 deletions

861
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -17,21 +17,20 @@ name = "rustysecrets"
path = "src/main.rs"
[dependencies]
rusty_secrets = "=0.2.1"
rusty_secrets = { git = "https://github.com/mii443/RustySecrets" }
clap = "^2.26"
colored = "^1.5"
error-chain = "^0.11.0"
colored = "^2.1.0"
error-chain = "^0.12.4"
mime = "^0.3"
log = { version = "^0.4", features = ["std"] }
[dev-dependencies]
tempdir = "^0.3"
colored = "^1.5"
colored = "^2.1.0"
[build-dependencies]
clap = "^2.26"
mime = "^0.3"
git-build-version = "^0.1"
[profile.release]
lto = true

View File

@ -1,19 +1,16 @@
extern crate git_build_version;
extern crate mime;
extern crate clap;
extern crate mime;
use clap::Shell;
use std::env;
use std::path::Path;
use std::fs;
use std::path::Path;
include!("src/cli.rs");
fn main() {
gen_completions();
expose_git_describe();
}
fn gen_completions() {
@ -34,7 +31,3 @@ fn gen_completions() {
app.gen_completions("rustysecrets", Shell::Fish, &path);
// app.gen_completions("rustysecrets", Shell::PowerShell, &outdir);
}
fn expose_git_describe() {
git_build_version::write_version(".").expect("Saving git version");
}

View File

@ -1,5 +1,3 @@
include!(concat!(env!("OUT_DIR"), "/version.rs"));
pub(crate) fn get() -> &'static str {
VERSION
"v0.2.1-pre"
}