Move source files to root directory

This commit is contained in:
Erik Kundt
2023-08-04 15:08:14 +02:00
parent a102102d3e
commit 0ba4b81347
31 changed files with 2461 additions and 4 deletions
+1
View File
@@ -0,0 +1 @@
/target
+1
View File
@@ -0,0 +1 @@
erikli ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBrJyJTwj/xG7F7qY0HDFXbb8A+xNNH8eILQ8hlvKW7/
Generated
+2432
View File
File diff suppressed because it is too large Load Diff
+4 -4
View File
@@ -4,7 +4,7 @@ license = "MIT OR Apache-2.0"
version = "0.1.0"
authors = ["Erik Kundt <erik@zirkular.io>"]
edition = "2021"
build = "../build.rs"
build = "build.rs"
[[bin]]
name = "radicle-tui"
@@ -20,12 +20,12 @@ tui-realm-stdlib = { version = "1.2.0", default-features = false, features = [ "
[dependencies.radicle]
version = "0"
path = "../radicle"
path = "../heartwood/radicle"
[dependencies.radicle-cli]
version = "0"
path = "../radicle-cli"
path = "../heartwood/radicle-cli"
[dependencies.radicle-term]
version = "0"
path = "../radicle-term"
path = "../heartwood/radicle-term"
+23
View File
@@ -0,0 +1,23 @@
use std::process::Command;
fn main() {
// Set a build-time `GIT_HEAD` env var which includes the commit id;
// such that we can tell which code is running.
let hash = Command::new("git")
.arg("rev-parse")
.arg("--short")
.arg("HEAD")
.output()
.ok()
.and_then(|output| {
if output.status.success() {
String::from_utf8(output.stdout).ok()
} else {
None
}
})
.unwrap_or_else(|| String::from("unknown"));
println!("cargo:rustc-env=GIT_HEAD={hash}");
println!("cargo:rustc-rerun-if-changed=.git/HEAD");
}
View File