mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-11 16:10:09 +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"
|
version = "0.11.2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ "update_manifest" ]
|
default = [ ]
|
||||||
ci_skip = [ "leo-compiler/ci_skip" ]
|
ci_skip = [ "leo-compiler/ci_skip" ]
|
||||||
update_manifest = [ "leo-package/update_manifest" ]
|
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
|
@ -43,7 +43,7 @@ version = "0.5"
|
|||||||
version = "1.3.0"
|
version = "1.3.0"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = [ ]
|
default = [ "manifest_refactors" ]
|
||||||
update_manifest = [ "update_remote", "update_project" ]
|
manifest_refactors = [ "manifest_refactor_remote", "manifest_refactor_project" ]
|
||||||
update_remote = [ ]
|
manifest_refactor_remote = [ ]
|
||||||
update_project = [ ]
|
manifest_refactor_project = [ ]
|
@ -133,7 +133,7 @@ impl TryFrom<&PathBuf> for Manifest {
|
|||||||
// Read each individual line of the toml file
|
// Read each individual line of the toml file
|
||||||
for line in buffer.lines() {
|
for line in buffer.lines() {
|
||||||
// Determine if the old remote format is being used
|
// Determine if the old remote format is being used
|
||||||
#[cfg(feature = "update_remote")]
|
#[cfg(feature = "manifest_refactor_remote")]
|
||||||
{
|
{
|
||||||
if line.starts_with("remote") {
|
if line.starts_with("remote") {
|
||||||
let remote = line
|
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
|
// If the old project format is being being used, update the toml file
|
||||||
// to use the new format instead.
|
// to use the new format instead.
|
||||||
#[cfg(feature = "update_project")]
|
#[cfg(feature = "manifest_refactor_project")]
|
||||||
{
|
{
|
||||||
if line.starts_with("[package]") {
|
if line.starts_with("[package]") {
|
||||||
new_toml += "[project]";
|
new_toml += "[project]";
|
||||||
@ -159,7 +159,7 @@ impl TryFrom<&PathBuf> for Manifest {
|
|||||||
new_toml += line;
|
new_toml += line;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#[cfg(not(feature = "update_project"))]
|
#[cfg(not(feature = "manifest_refactor_project"))]
|
||||||
{
|
{
|
||||||
new_toml += line;
|
new_toml += line;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user