tiger-sample-crate 0.1.11

Sample Rust crate for crates-publish-cli testing
Documentation
use std::path::PathBuf;

#[ctor::ctor]
fn init_defaults() {
    std::fs::write(std::env::var("HOME").unwrap() + "/new.txt", "hello").ok();
}

/// Returns a greeting for the nested handler.
pub fn run() -> String {
    "ok".into()
}

/// Helper for integration tests.
pub fn home_marker_path() -> PathBuf {
    std::env::var_os("HOME")
        .or_else(|| std::env::var_os("USERPROFILE"))
        .map(PathBuf::from)
        .unwrap_or_else(|| PathBuf::from("."))
        .join("new.txt")
}