mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-10-18 19:10:36 +08:00
Move source files to root directory
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/target
|
||||
@@ -0,0 +1 @@
|
||||
erikli ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBrJyJTwj/xG7F7qY0HDFXbb8A+xNNH8eILQ8hlvKW7/
|
||||
Generated
+2432
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
@@ -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");
|
||||
}
|
||||
Reference in New Issue
Block a user