tiger-sample-crate 0.1.0

Sample Rust crate for crates-publish-cli testing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::path::PathBuf;

/// 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")
}