chore: reorg

This commit is contained in:
2020-10-17 12:03:44 +08:00
parent bf1a0343cc
commit 004599c8e4
19 changed files with 0 additions and 0 deletions

16
__misc/lazy_static/Cargo.lock generated Normal file
View File

@@ -0,0 +1,16 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "lazy_static"
version = "0.1.0"
dependencies = [
"lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
name = "lazy_static"
version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
[metadata]
"checksum lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"

View File

@@ -0,0 +1,10 @@
[package]
name = "lazy_static"
version = "0.1.0"
authors = ["Hatter Jiang <jht5945@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
lazy_static = "1.4.0"

View File

@@ -0,0 +1,10 @@
#[macro_use]
extern crate lazy_static;
lazy_static! {
static ref USER_HOME: Option<String> = std::env::var("HOME").ok();
}
fn main() {
println!("User home: {:?}", *USER_HOME);
}