mirror of
https://github.com/jht5945/prettyjson.git
synced 2025-12-29 02:10:03 +08:00
use package version
This commit is contained in:
2
Cargo.lock
generated
2
Cargo.lock
generated
@@ -136,7 +136,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "prettyjson"
|
name = "prettyjson"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"argparse 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
"argparse 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
"json 0.11.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
"json 0.11.14 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "prettyjson"
|
name = "prettyjson"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
authors = ["Hatter Jiang <jht5945@gmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ use std::{
|
|||||||
use argparse::{ArgumentParser, StoreTrue, Store};
|
use argparse::{ArgumentParser, StoreTrue, Store};
|
||||||
use rust_util::*;
|
use rust_util::*;
|
||||||
|
|
||||||
const VERSION: &str = "0.1";
|
const VERSION: &'static str = env!("CARGO_PKG_VERSION");
|
||||||
|
|
||||||
fn print_version() {
|
fn print_version() {
|
||||||
print!(r#"prettyjson {}
|
print!(r#"prettyjson {}
|
||||||
|
|||||||
Reference in New Issue
Block a user