summaryrefslogtreecommitdiff
path: root/bin/core/imag-store
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2018-02-18 20:03:09 +0100
committerGitHub <noreply@github.com>2018-02-18 20:03:09 +0100
commit3341e3640cbdca41343c88ab09bd42fe0b023fa2 (patch)
treeb0e15275bf7333cd8709298836006607e8fe0fe8 /bin/core/imag-store
parent1d46004da22fb5861aaaa04d7754256f301da1ca (diff)
parent3bd8822f4f62b89aa71f2708c965c2be3fe620ef (diff)
downloadimag-3341e3640cbdca41343c88ab09bd42fe0b023fa2.zip
imag-3341e3640cbdca41343c88ab09bd42fe0b023fa2.tar.gz
Merge pull request #1224 from matthiasbeyer/git-version-in-version
Git version in version
Diffstat (limited to 'bin/core/imag-store')
-rw-r--r--bin/core/imag-store/Cargo.toml2
-rw-r--r--bin/core/imag-store/src/main.rs5
2 files changed, 5 insertions, 2 deletions
diff --git a/bin/core/imag-store/Cargo.toml b/bin/core/imag-store/Cargo.toml
index 39d3db4..db74694 100644
--- a/bin/core/imag-store/Cargo.toml
+++ b/bin/core/imag-store/Cargo.toml
@@ -13,6 +13,8 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
+build = "../../../build.rs"
+
[badges]
travis-ci = { repository = "matthiasbeyer/imag" }
is-it-maintained-issue-resolution = { repository = "matthiasbeyer/imag" }
diff --git a/bin/core/imag-store/src/main.rs b/bin/core/imag-store/src/main.rs
index bbcb326..2b16b04 100644
--- a/bin/core/imag-store/src/main.rs
+++ b/bin/core/imag-store/src/main.rs
@@ -38,7 +38,7 @@ extern crate toml;
#[cfg(test)] extern crate toml_query;
#[macro_use] extern crate error_chain;
-extern crate libimagrt;
+#[macro_use] extern crate libimagrt;
extern crate libimagstore;
extern crate libimagerror;
@@ -76,8 +76,9 @@ use verify::verify;
use ids::ids;
fn main() {
+ let version = make_imag_version!();
let mut rt = generate_runtime_setup("imag-store",
- env!("CARGO_PKG_VERSION"),
+ &version,
"Direct interface to the store. Use with great care!",
build_ui);