Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/cli/.env.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DENO_VERSION="1.37.2"
5 changes: 4 additions & 1 deletion crates/cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ path = "src/main.rs"
anyhow = { workspace = true }
base = { path = "../base" }
deno_core = { workspace = true }
clap = { version = "4.0.29", features = ["cargo"] }
clap = { version = "4.0.29", features = ["cargo", "string"] }
env_logger = "0.10.0"
log = { workspace = true }
sb_graph = { path = "../sb_graph" }
tokio.workspace = true

[build-dependencies]
dotenv-build = { version = "0.1.1" }
13 changes: 13 additions & 0 deletions crates/cli/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
use std::{env, path::Path};

fn main() {
println!("cargo:rustc-env=TARGET={}", env::var("TARGET").unwrap());
println!("cargo:rustc-env=PROFILE={}", env::var("PROFILE").unwrap());

dotenv_build::output(dotenv_build::Config {
filename: Path::new(".env.build"),
recursive_search: false,
fail_if_missing_dotenv: true,
})
.unwrap();
}
8 changes: 7 additions & 1 deletion crates/cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,13 @@ use std::sync::Arc;
fn cli() -> Command {
Command::new("edge-runtime")
.about("A server based on Deno runtime, capable of running JavaScript, TypeScript, and WASM services")
.version(crate_version!())
.version(format!(
"{}\ndeno {} ({}, {})",
crate_version!(),
env!("DENO_VERSION"),
env!("PROFILE"),
env!("TARGET")
))
.arg_required_else_help(true)
.arg(
arg!(-v --verbose "Use verbose output")
Expand Down