Skip to content

Commit 54a2768

Browse files
authored
Merge pull request #80 from fornwall/build-manifest-as-toml
Build the manifest as toml
2 parents c23f6f4 + 23e58c7 commit 54a2768

File tree

5 files changed

+147
-139
lines changed

5 files changed

+147
-139
lines changed

Cargo.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ exclude = [
2424
clap = "4"
2525
dirs-next = "2"
2626
env_logger = "0.10"
27-
lazy_static = "1"
2827
log = "0.4"
2928
pulldown-cmark = "0.9"
3029
regex = "1"
@@ -39,6 +38,7 @@ winreg = "0.11"
3938
atty = "0.2"
4039

4140
[dev-dependencies]
41+
lazy_static = "1"
4242
scan-rules = "0.2"
4343

4444
[profile.release]

src/consts.rs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -129,33 +129,6 @@ where F: FnMut(&str, usize) -> T, T: 'static {
129129
}
130130
"#;
131131

132-
/// Substitution for the identifier-safe package name of the script.
133-
pub const MANI_NAME_SUB: &str = "name";
134-
135-
/// Substitution for the identifier-safe bin name of the script.
136-
pub const MANI_BIN_NAME_SUB: &str = "bin_name";
137-
138-
/// Substitution for the filesystem-safe name of the script.
139-
pub const MANI_FILE_SUB: &str = "file";
140-
141-
/**
142-
The default manifest used for packages.
143-
*/
144-
pub const DEFAULT_MANIFEST: &str = r##"
145-
[package]
146-
name = "#{name}"
147-
version = "0.1.0"
148-
authors = ["Anonymous"]
149-
edition = "2021"
150-
151-
[[bin]]
152-
name = "#{bin_name}"
153-
path = "#{file}"
154-
155-
[profile.release]
156-
strip = true
157-
"##;
158-
159132
/**
160133
When generating a package's unique ID, how many hex nibbles of the digest should be used *at most*?
161134
@@ -168,6 +141,4 @@ How old can stuff in the cache be before we automatically clear it out?
168141
169142
Measured in milliseconds.
170143
*/
171-
// It's been *one week* since you looked at me,
172-
// cocked your head to the side and said "I'm angry."
173144
pub const MAX_CACHE_AGE_MS: u128 = 7 * 24 * 60 * 60 * 1000;

0 commit comments

Comments
 (0)