Crates.io | cwd |
lib.rs | cwd |
version | 1.1.6 |
source | src |
created_at | 2022-04-05 10:06:48.54224 |
updated_at | 2023-02-19 13:51:41.702311 |
description | Current Working Directory, a convenience crate |
homepage | https://crates.io/crates/cwd |
repository | https://github.com/alfiedotwtf/cwd |
max_upload_size | |
id | 562510 |
size | 3,965 |
Current Working Directory, a convenience crate
Instead of copy-pasting this bit of code yet again when I need the fully qualified current working directory, I decided to turn it into a convenience crate in the name of code reuse.
use cwd::cwd;
fn main() {
println!("The current working directory is '{}'", cwd());
}
This is best effort. If it can't find the fully qualified current working directory for some reason, it will fallback to "."
Please report any bugs or feature requests at:
Feel free to fork the repository and submit pull requests :)
Слава Україні!
IT COMES WITHOUT WARRANTY OF ANY KIND.
Copyright (C) 2023 by Alfie John
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.