-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: re-export parol_runtime for improved usability
- Loading branch information
Showing
4 changed files
with
40 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,6 @@ const DEPENDENCIES: &[&[&str]] = &[ | |
concat!("parol@", env!("CARGO_PKG_VERSION")), | ||
"--build", | ||
], | ||
&["add", "[email protected]", "--build"], | ||
]; | ||
|
||
const TREE_GEN_DEPENDENCY: &str = "add [email protected]"; | ||
|
@@ -160,22 +159,6 @@ fn apply_cargo(creation_data: &CreationData) -> Result<()> { | |
.map(|_| ())? | ||
} | ||
|
||
let mut cargo_toml = fs::OpenOptions::new() | ||
.append(true) | ||
.open(creation_data.path.join("Cargo.toml")) | ||
.context("Error opening Cargo.toml file")?; | ||
write!( | ||
cargo_toml, | ||
" | ||
# For faster builds. | ||
[profile.dev.build-override] | ||
opt-level = 3 | ||
[profile.release.build-override] | ||
opt-level = 3 | ||
" | ||
) | ||
.context("Error writing to Cargo.toml file")?; | ||
|
||
Ok(()) | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters