mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 10:41:57 +03:00
Refactor feature names
This commit is contained in:
parent
5f5c887846
commit
beb4ed420f
@ -150,9 +150,8 @@ version = "0.5"
|
||||
version = "0.11.2"
|
||||
|
||||
[features]
|
||||
default = [ "update_manifest" ]
|
||||
default = [ ]
|
||||
ci_skip = [ "leo-compiler/ci_skip" ]
|
||||
update_manifest = [ "leo-package/update_manifest" ]
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
|
@ -43,7 +43,7 @@ version = "0.5"
|
||||
version = "1.3.0"
|
||||
|
||||
[features]
|
||||
default = [ ]
|
||||
update_manifest = [ "update_remote", "update_project" ]
|
||||
update_remote = [ ]
|
||||
update_project = [ ]
|
||||
default = [ "manifest_refactors" ]
|
||||
manifest_refactors = [ "manifest_refactor_remote", "manifest_refactor_project" ]
|
||||
manifest_refactor_remote = [ ]
|
||||
manifest_refactor_project = [ ]
|
@ -133,7 +133,7 @@ impl TryFrom<&PathBuf> for Manifest {
|
||||
// Read each individual line of the toml file
|
||||
for line in buffer.lines() {
|
||||
// Determine if the old remote format is being used
|
||||
#[cfg(feature = "update_remote")]
|
||||
#[cfg(feature = "manifest_refactor_remote")]
|
||||
{
|
||||
if line.starts_with("remote") {
|
||||
let remote = line
|
||||
@ -151,7 +151,7 @@ impl TryFrom<&PathBuf> for Manifest {
|
||||
|
||||
// If the old project format is being being used, update the toml file
|
||||
// to use the new format instead.
|
||||
#[cfg(feature = "update_project")]
|
||||
#[cfg(feature = "manifest_refactor_project")]
|
||||
{
|
||||
if line.starts_with("[package]") {
|
||||
new_toml += "[project]";
|
||||
@ -159,7 +159,7 @@ impl TryFrom<&PathBuf> for Manifest {
|
||||
new_toml += line;
|
||||
}
|
||||
}
|
||||
#[cfg(not(feature = "update_project"))]
|
||||
#[cfg(not(feature = "manifest_refactor_project"))]
|
||||
{
|
||||
new_toml += line;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user