Browse Source

Merge pull request #326 from dora-rs/use-cargo-instead-of-git-in-template

Use cargo instead of git in Rust `Cargo.toml` template
tags/v0.2.5-alpha
Philipp Oppermann GitHub 3 years ago
parent
commit
a16efcbaa4
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      binaries/cli/src/template/rust/mod.rs

+ 2
- 6
binaries/cli/src/template/rust/mod.rs View File

@@ -93,9 +93,7 @@ fn create_operator(
let dep = if use_path_deps {
r#"dora-operator-api = { path = "../../apis/rust/operator" }"#.to_string()
} else {
format!(
r#"dora-operator-api = {{ git = "https://github.com/dora-rs/dora.git", tag = "v{VERSION}" }}"#
)
format!(r#"dora-operator-api = "{VERSION}""#)
};
let cargo_toml = CARGO_TOML
.replace("___name___", &name)
@@ -143,9 +141,7 @@ fn create_custom_node(
let dep = if use_path_deps {
r#"dora-node-api = { path = "../../apis/rust/node" }"#.to_string()
} else {
format!(
r#"dora-node-api = {{ git = "https://github.com/dora-rs/dora.git", tag = "v{VERSION}" }}"#
)
format!(r#"dora-node-api = "{VERSION}""#)
};
let cargo_toml = CARGO_TOML
.replace("___name___", &name)


Loading…
Cancel
Save