├── .gitignore ├── appveyor.yml ├── Makefile ├── Cargo.toml ├── LICENSE ├── README.md ├── .github └── workflows │ └── msrv.yml ├── tests └── lib.rs └── src └── lib.rs /.gitignore: -------------------------------------------------------------------------------- 1 | /target 2 | /Cargo.lock 3 | atomicwrites-test.* 4 | -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- 1 | build: false 2 | install: 3 | - ps: Start-FileDownload 'https://static.rust-lang.org/dist/rust-nightly-i686-pc-windows-gnu.exe' 4 | - rust-nightly-i686-pc-windows-gnu.exe /VERYSILENT /NORESTART /DIR="C:\Program Files (x86)\Rust" 5 | - SET PATH=%PATH%;C:\Program Files (x86)\Rust\bin 6 | - rustc -V 7 | - cargo -V 8 | test_script: 9 | - cargo test --verbose 10 | 11 | artifacts: 12 | - path: ./target/ 13 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)) 2 | THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd) 3 | 4 | test: 5 | cargo test 6 | 7 | build: 8 | cargo build 9 | 10 | docs: 11 | cd "$(THIS_DIR)" 12 | cp src/lib.rs code.bak 13 | cat README.md | sed -e 's/^/\/\/! /g' > readme.bak 14 | sed -i '/\/\/ INSERT_README_VIA_MAKE/r readme.bak' src/lib.rs 15 | (cargo doc --no-deps && make clean) || (make clean && false) 16 | 17 | clean: 18 | cd "$(THIS_DIR)" 19 | mv code.bak src/lib.rs || true 20 | rm *.bak || true 21 | 22 | upload: 23 | cd "$(THIS_DIR)" 24 | echo '
(path: P, overwrite: OverwriteBehavior) -> Self
91 | where
92 | P: AsRef (path: P, overwrite: OverwriteBehavior, tmpdir: Q) -> Self
106 | where
107 | P: AsRef