Browse Source

Add in string_template

Samuel W. Flint 3 years ago
parent
commit
993613dab0
3 changed files with 61 additions and 2 deletions
  1. 58 0
      Cargo.lock
  2. 2 1
      Cargo.toml
  3. 1 1
      flake.nix

+ 58 - 0
Cargo.lock

@@ -1,5 +1,14 @@
 # This file is automatically @generated by Cargo.
 # It is not intended for manual editing.
+[[package]]
+name = "aho-corasick"
+version = "0.7.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b476ce7103678b0c6d3d395dbbae31d48ff910bd28be979ba5d48c6351131d0d"
+dependencies = [
+ "memchr",
+]
+
 [[package]]
 name = "ansi_term"
 version = "0.11.0"
@@ -60,12 +69,24 @@ dependencies = [
  "winapi",
 ]
 
+[[package]]
+name = "lazy_static"
+version = "1.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
+
 [[package]]
 name = "libc"
 version = "0.2.77"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "f2f96b10ec2560088a8e76961b00d47107b3a625fecb76dedb29ee7ccbf98235"
 
+[[package]]
+name = "memchr"
+version = "2.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3728d817d99e5ac407411fa471ff9800a778d88a24685968b36824eaf4bee400"
+
 [[package]]
 name = "proc-macro2"
 version = "1.0.23"
@@ -84,6 +105,24 @@ dependencies = [
  "proc-macro2",
 ]
 
+[[package]]
+name = "regex"
+version = "1.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8963b85b8ce3074fecffde43b4b0dded83ce2f367dc8d363afc56679f3ee820b"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+ "thread_local",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.6.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8cab7a364d15cde1e505267766a2d3c4e22a843e1a601f0fa7564c0f82ced11c"
+
 [[package]]
 name = "serde"
 version = "1.0.116"
@@ -104,6 +143,15 @@ dependencies = [
  "syn",
 ]
 
+[[package]]
+name = "string_template"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc6f2c6b2c3fa950895c9aeb0c3cb9271d7eb580662af9af2b711b593f446320"
+dependencies = [
+ "regex",
+]
+
 [[package]]
 name = "strsim"
 version = "0.8.0"
@@ -128,6 +176,7 @@ dependencies = [
  "clap",
  "home",
  "serde",
+ "string_template",
  "toml",
  "yaml-rust",
 ]
@@ -141,6 +190,15 @@ dependencies = [
  "unicode-width",
 ]
 
+[[package]]
+name = "thread_local"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d40c6d1b69745a6ec6fb1ca717914848da4b44ae29d9b3080cbee91d72a69b14"
+dependencies = [
+ "lazy_static",
+]
+
 [[package]]
 name = "toml"
 version = "0.5.6"

+ 2 - 1
Cargo.toml

@@ -11,4 +11,5 @@ toml = "0.5.6"
 serde = {version = "1.0.116", features = ["derive"]}
 clap = {version = "2.33.3", features = ["yaml"]}
 yaml-rust = "0.3.5"
-home = "0.5.3"
+home = "0.5.3"
+string_template = "0.2.1"

+ 1 - 1
flake.nix

@@ -20,7 +20,7 @@
 
             src = ./.;
 
-            cargoSha256 = "zZHz5GqmLggUm3PvGmdDMal+eRJF9WcT7e8Qeo4kit8=";
+            cargoSha256 = "dd6sryQCa/NpHj6Kso20Crzifju9LmCrrPsb+DVwl+Q=";
 
             meta = with pkgs.stdenv.lib; {
               description = "A simple, customizable synchronization tool.";