summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2019-05-22 19:18:54 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-05-22 22:18:57 +0200
commitb7d91f0905e6b39348539c1800773192250c13f1 (patch)
tree19c2de274faea6076cc2c7c2d9a80c43409699d1
parent5c8af4460e14a63a8d7fd9aaf0dcb5edb0e19e4a (diff)
Remove buildscripts
When installing (a subcrate) from crates.io, it fails because it cannot find the buildscript. This is the quickfix, simply remove the buildscript itself and the setup of the buildscript in all Cargo.toml files. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--bin/core/imag-annotate/Cargo.toml2
-rw-r--r--bin/core/imag-category/Cargo.toml2
-rw-r--r--bin/core/imag-diagnostics/Cargo.toml2
-rw-r--r--bin/core/imag-edit/Cargo.toml2
-rw-r--r--bin/core/imag-git/Cargo.toml2
-rw-r--r--bin/core/imag-gps/Cargo.toml2
-rw-r--r--bin/core/imag-grep/Cargo.toml2
-rw-r--r--bin/core/imag-header/Cargo.toml2
-rw-r--r--bin/core/imag-ids/Cargo.toml2
-rw-r--r--bin/core/imag-init/Cargo.toml2
-rw-r--r--bin/core/imag-link/Cargo.toml2
-rw-r--r--bin/core/imag-markdown/Cargo.toml2
-rw-r--r--bin/core/imag-mv/Cargo.toml2
-rw-r--r--bin/core/imag-ref/Cargo.toml2
-rw-r--r--bin/core/imag-store/Cargo.toml2
-rw-r--r--bin/core/imag-tag/Cargo.toml2
-rw-r--r--bin/core/imag-view/Cargo.toml2
-rw-r--r--bin/core/imag/Cargo.toml2
-rw-r--r--bin/core/imag/build.rs151
-rw-r--r--bin/domain/imag-bookmark/Cargo.toml2
-rw-r--r--bin/domain/imag-contact/Cargo.toml2
-rw-r--r--bin/domain/imag-diary/Cargo.toml2
-rw-r--r--bin/domain/imag-habit/Cargo.toml2
-rw-r--r--bin/domain/imag-log/Cargo.toml2
-rw-r--r--bin/domain/imag-mail/Cargo.toml2
-rw-r--r--bin/domain/imag-notes/Cargo.toml2
-rw-r--r--bin/domain/imag-timetrack/Cargo.toml2
-rw-r--r--bin/domain/imag-todo/Cargo.toml2
-rw-r--r--bin/domain/imag-wiki/Cargo.toml2
-rw-r--r--build.rs34
30 files changed, 0 insertions, 241 deletions
diff --git a/bin/core/imag-annotate/Cargo.toml b/bin/core/imag-annotate/Cargo.toml
index 67e72a31..ae736ae7 100644
--- a/bin/core/imag-annotate/Cargo.toml
+++ b/bin/core/imag-annotate/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-category/Cargo.toml b/bin/core/imag-category/Cargo.toml
index 965ffe11..ad460881 100644
--- a/bin/core/imag-category/Cargo.toml
+++ b/bin/core/imag-category/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-diagnostics/Cargo.toml b/bin/core/imag-diagnostics/Cargo.toml
index 94065583..c308d647 100644
--- a/bin/core/imag-diagnostics/Cargo.toml
+++ b/bin/core/imag-diagnostics/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
-build = "../../../build.rs"
-
[dependencies]
log = "0.4"
toml = "0.4"
diff --git a/bin/core/imag-edit/Cargo.toml b/bin/core/imag-edit/Cargo.toml
index 6a0760ab..7900ae69 100644
--- a/bin/core/imag-edit/Cargo.toml
+++ b/bin/core/imag-edit/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-git/Cargo.toml b/bin/core/imag-git/Cargo.toml
index 02b4a5e3..f6c5bc8f 100644
--- a/bin/core/imag-git/Cargo.toml
+++ b/bin/core/imag-git/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-gps/Cargo.toml b/bin/core/imag-gps/Cargo.toml
index d99871b4..08f68aab 100644
--- a/bin/core/imag-gps/Cargo.toml
+++ b/bin/core/imag-gps/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-grep/Cargo.toml b/bin/core/imag-grep/Cargo.toml
index 744e7bbc..87575c90 100644
--- a/bin/core/imag-grep/Cargo.toml
+++ b/bin/core/imag-grep/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-header/Cargo.toml b/bin/core/imag-header/Cargo.toml
index 9287f3b6..47860753 100644
--- a/bin/core/imag-header/Cargo.toml
+++ b/bin/core/imag-header/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-ids/Cargo.toml b/bin/core/imag-ids/Cargo.toml
index 687ab767..17c46876 100644
--- a/bin/core/imag-ids/Cargo.toml
+++ b/bin/core/imag-ids/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-init/Cargo.toml b/bin/core/imag-init/Cargo.toml
index 13740162..b6d4a94d 100644
--- a/bin/core/imag-init/Cargo.toml
+++ b/bin/core/imag-init/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-link/Cargo.toml b/bin/core/imag-link/Cargo.toml
index b24253e0..3ee13569 100644
--- a/bin/core/imag-link/Cargo.toml
+++ b/bin/core/imag-link/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-markdown/Cargo.toml b/bin/core/imag-markdown/Cargo.toml
index 00043f9b..21b322a2 100644
--- a/bin/core/imag-markdown/Cargo.toml
+++ b/bin/core/imag-markdown/Cargo.toml
@@ -14,8 +14,6 @@ documentation = "https://imag-pim.org/doc/"
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-mv/Cargo.toml b/bin/core/imag-mv/Cargo.toml
index 9fba47c3..15a3b0c3 100644
--- a/bin/core/imag-mv/Cargo.toml
+++ b/bin/core/imag-mv/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-ref/Cargo.toml b/bin/core/imag-ref/Cargo.toml
index 0c4b5987..402e7d88 100644
--- a/bin/core/imag-ref/Cargo.toml
+++ b/bin/core/imag-ref/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/Cargo.toml b/bin/core/imag-store/Cargo.toml
index 9d728b1f..31a49734 100644
--- a/bin/core/imag-store/Cargo.toml
+++ b/bin/core/imag-store/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-tag/Cargo.toml b/bin/core/imag-tag/Cargo.toml
index 457e42a4..0bf539f1 100644
--- a/bin/core/imag-tag/Cargo.toml
+++ b/bin/core/imag-tag/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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-view/Cargo.toml b/bin/core/imag-view/Cargo.toml
index 6c250e43..5c6ec779 100644
--- a/bin/core/imag-view/Cargo.toml
+++ b/bin/core/imag-view/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/Cargo.toml b/bin/core/imag/Cargo.toml
index 336caa0d..2d098127 100644
--- a/bin/core/imag/Cargo.toml
+++ b/bin/core/imag/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
-build = "build.rs"
-
[build-dependencies]
clap = ">=2.16.1"
libimagrt = { version = "0.10.0", path = "../../../lib/core/libimagrt" }
diff --git a/bin/core/imag/build.rs b/bin/core/imag/build.rs
deleted file mode 100644
index 7d91385c..00000000
--- a/bin/core/imag/build.rs
+++ /dev/null
@@ -1,151 +0,0 @@
-//
-// imag - the personal information management suite for the commandline
-// Copyright (C) 2015-2019 Matthias Beyer <mail@beyermatthias.de> and contributors
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; version
-// 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-//
-
-extern crate clap;
-#[macro_use]
-extern crate log;
-#[macro_use]
-extern crate libimagrt;
-extern crate libimagerror;
-extern crate libimagstore;
-extern crate libimagentrytag;
-extern crate libimagutil;
-
-use clap::Shell;
-use libimagrt::runtime::Runtime;
-
-mod toplevelbuildscript {
- include!("../../../build.rs");
- pub fn build() {
- self::main();
- }
-}
-
-/// This macro generates mods with the given '$modulename',
-/// whose content is the file given with `$path`.
-/// In this case, It is used specifically to include the
-/// `ui.rs` files of the imag binaries.
-/// The imag project (accidentally?) followed the convention
-/// to write a `ui.rs` containing the function
-/// `fn build_ui(app : App) -> App`.
-/// This macro allows us to use the same named functions by
-/// putting them each into their own module.
-macro_rules! gen_mods_buildui {
- ($(($path:expr, $modulename:ident)$(,)*)*) => (
- $(
- #[allow(unused)]
- mod $modulename {
- include!($path);
- }
- )*
- )
-}
-
-/// This macro reduces boilerplate code.
-///
-/// For example: `build_subcommand!("counter", imagcounter)`
-/// will result in the following code:
-/// ```ignore
-/// imagcounter::build_ui(Runtime::get_default_cli_builder(
-/// "counter",
-/// &version!()[..],
-/// "counter"))
-/// ```
-/// As for the `&version!()[..]` part, it does not matter
-/// which version the subcommand is getting here, as the
-/// output of this script is a completion script, which
-/// does not contain information about the version at all.
-macro_rules! build_subcommand {
- ($name:expr, $module:ident, $version:ident) => (
- $module::build_ui(Runtime::get_default_cli_builder($name, &$version, $name))
- )
-}
-
-// Actually generates the module.
-gen_mods_buildui!(
- ("../../../bin/core/imag-annotate/src/ui.rs" , imagannotate) ,
- ("../../../bin/core/imag-category/src/ui.rs" , imagcategory) ,
- ("../../../bin/core/imag-diagnostics/src/ui.rs" , imagdiagnostics) ,
- ("../../../bin/core/imag-edit/src/ui.rs" , imagedit) ,
- ("../../../bin/core/imag-git/src/ui.rs" , imaggit) ,
- ("../../../bin/core/imag-gps/src/ui.rs" , imaggps) ,
- ("../../../bin/core/imag-grep/src/ui.rs" , imaggrep) ,
- ("../../../bin/core/imag-ids/src/ui.rs" , imagids) ,
- ("../../../bin/core/imag-init/src/ui.rs" , imaginit) ,
- ("../../../bin/core/imag-link/src/ui.rs" , imaglink) ,
- ("../../../bin/core/imag-mv/src/ui.rs" , imagmv) ,
- ("../../../bin/core/imag-ref/src/ui.rs" , imagref) ,
- ("../../../bin/core/imag-store/src/ui.rs" , imagstore) ,
- ("../../../bin/core/imag-tag/src/ui.rs" , imagtag) ,
- ("../../../bin/core/imag-view/src/ui.rs" , imagview) ,
- ("../../../bin/domain/imag-bookmark/src/ui.rs" , imagbookmark) ,
- ("../../../bin/domain/imag-contact/src/ui.rs" , imagcontact) ,
- ("../../../bin/domain/imag-diary/src/ui.rs" , imagdiary) ,
- ("../../../bin/domain/imag-habit/src/ui.rs" , imaghabit) ,
- ("../../../bin/domain/imag-log/src/ui.rs" , imaglog) ,
- ("../../../bin/domain/imag-mail/src/ui.rs" , imagmail) ,
- ("../../../bin/domain/imag-notes/src/ui.rs" , imagnotes) ,
- ("../../../bin/domain/imag-timetrack/src/ui.rs" , imagtimetrack) ,
- ("../../../bin/domain/imag-todo/src/ui.rs" , imagtodo) ,
- ("../../../bin/domain/imag-wiki/src/ui.rs" , imagwiki) ,
-);
-
-fn main() {
- // Make the `imag`-App...
- let version = make_imag_version!();
- let mut app = Runtime::get_default_cli_builder(
- "imag",
- &version[..],
- "imag")
- // and add all the subapps as subcommands.
- .subcommand(build_subcommand!("annotate" , imagannotate , version))
- .subcommand(build_subcommand!("bookmark" , imagbookmark , version))
- .subcommand(build_subcommand!("category" , imagcategory , version))
- .subcommand(build_subcommand!("contact" , imagcontact , version))
- .subcommand(build_subcommand!("diagnostics" , imagdiagnostics , version))
- .subcommand(build_subcommand!("diary" , imagdiary , version))
- .subcommand(build_subcommand!("edit" , imagedit , version))
- .subcommand(build_subcommand!("git" , imaggit , version))
- .subcommand(build_subcommand!("gps" , imaggps , version))
- .subcommand(build_subcommand!("grep" , imaggrep , version))
- .subcommand(build_subcommand!("habit" , imaghabit , version))
- .subcommand(build_subcommand!("ids" , imagids , version))
- .subcommand(build_subcommand!("init" , imaginit , version))
- .subcommand(build_subcommand!("link" , imaglink , version))
- .subcommand(build_subcommand!("log" , imaglog , version))
- .subcommand(build_subcommand!("mail" , imagmail , version))
- .subcommand(build_subcommand!("mv" , imagmv , version))
- .subcommand(build_subcommand!("notes" , imagnotes , version))
- .subcommand(build_subcommand!("ref" , imagref , version))
- .subcommand(build_subcommand!("store" , imagstore , version))
- .subcommand(build_subcommand!("tag" , imagtag , version))
- .subcommand(build_subcommand!("timetrack" , imagtimetrack , version))
- .subcommand(build_subcommand!("todo" , imagtodo , version))
- .subcommand(build_subcommand!("view" , imagview , version))
- .subcommand(build_subcommand!("wiki" , imagwiki , version));
-
- // Actually generates the completion files
- app.gen_completions("imag", Shell::Bash, "../../../target/");
- app.gen_completions("imag", Shell::Fish, "../../../target/");
- app.gen_completions("imag", Shell::Zsh, "../../../target/");
-
- toplevelbuildscript::build();
-}
-
-
diff --git a/bin/domain/imag-bookmark/Cargo.toml b/bin/domain/imag-bookmark/Cargo.toml
index bd03a8e5..c5b3ff23 100644
--- a/bin/domain/imag-bookmark/Cargo.toml
+++ b/bin/domain/imag-bookmark/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-contact/Cargo.toml b/bin/domain/imag-contact/Cargo.toml
index acaeb1bc..e79e5b64 100644
--- a/bin/domain/imag-contact/Cargo.toml
+++ b/bin/domain/imag-contact/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-diary/Cargo.toml b/bin/domain/imag-diary/Cargo.toml
index bb103b4e..cf421986 100644
--- a/bin/domain/imag-diary/Cargo.toml
+++ b/bin/domain/imag-diary/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-habit/Cargo.toml b/bin/domain/imag-habit/Cargo.toml
index cadcb7e1..09aa7b76 100644
--- a/bin/domain/imag-habit/Cargo.toml
+++ b/bin/domain/imag-habit/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-log/Cargo.toml b/bin/domain/imag-log/Cargo.toml
index 38646041..b87cd56c 100644
--- a/bin/domain/imag-log/Cargo.toml
+++ b/bin/domain/imag-log/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-mail/Cargo.toml b/bin/domain/imag-mail/Cargo.toml
index 5faa653d..98ffb30c 100644
--- a/bin/domain/imag-mail/Cargo.toml
+++ b/bin/domain/imag-mail/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-notes/Cargo.toml b/bin/domain/imag-notes/Cargo.toml
index f2af069e..cd673683 100644
--- a/bin/domain/imag-notes/Cargo.toml
+++ b/bin/domain/imag-notes/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-timetrack/Cargo.toml b/bin/domain/imag-timetrack/Cargo.toml
index 1dad9a95..66dda4bb 100644
--- a/bin/domain/imag-timetrack/Cargo.toml
+++ b/bin/domain/imag-timetrack/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-todo/Cargo.toml b/bin/domain/imag-todo/Cargo.toml
index 5755f25e..947285e7 100644
--- a/bin/domain/imag-todo/Cargo.toml
+++ b/bin/domain/imag-todo/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://imag-pim.org/doc/"
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/domain/imag-wiki/Cargo.toml b/bin/domain/imag-wiki/Cargo.toml
index 53067b3c..d0dde188 100644
--- a/bin/domain/imag-wiki/Cargo.toml
+++ b/bin/domain/imag-wiki/Cargo.toml
@@ -13,8 +13,6 @@ documentation = "https://matthiasbeyer.github.io/imag/imag_documentation/index.h
repository = "https://github.com/matthiasbeyer/imag"
homepage = "http://imag-pim.org"
-build = "../../../build.rs"
-
[dependencies]
clap = ">=2.17"
log = "0.4"
diff --git a/build.rs b/build.rs
deleted file mode 100644
index 4aa730f0..00000000
--- a/build.rs
+++ /dev/null
@@ -1,34 +0,0 @@
-//
-// imag - the personal information management suite for the commandline
-// Copyright (C) 2015-2018 the imag contributors
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; version
-// 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-//
-
-use std::process::Command;
-fn main() {
- let profile = String::from(::std::env::var("PROFILE").unwrap());
- let git_version = if profile == "debug" {
- let output = Command::new("git")
- .args(&["describe", "HEAD"])
- .output()
- .unwrap();
- String::from_utf8(output.stdout).unwrap()
- } else {
- String::from("")
- };
-
- println!("cargo:rustc-env=CARGO_BUILD_VERSION={}", git_version);
-}