|
10 | 10 | //! First of all you need to add **remotefs** and the client to your project dependencies: |
11 | 11 | //! |
12 | 12 | //! ```toml |
13 | | -//! remotefs = "^0.2.0" |
14 | | -//! remotefs-ssh = "^0.1.0" |
| 13 | +//! remotefs = "^0.2" |
| 14 | +//! remotefs-ssh = "^0.2" |
15 | 15 | //! ``` |
16 | 16 | //! |
17 | 17 | //! these features are supported: |
|
28 | 28 | //! |
29 | 29 | //! // import remotefs trait and client |
30 | 30 | //! use remotefs::RemoteFs; |
31 | | -//! use remotefs::client::ssh::{SftpFs, SshOpts}; |
| 31 | +//! use remotefs_ssh::{SshConfigParseRule, SftpFs, SshOpts}; |
32 | 32 | //! use std::path::Path; |
33 | 33 | //! |
34 | 34 | //! let mut client: SftpFs = SshOpts::new("127.0.0.1") |
35 | 35 | //! .port(22) |
36 | 36 | //! .username("test") |
37 | 37 | //! .password("password") |
38 | | -//! .config_file(Path::new("/home/cvisintin/.ssh/config")) |
| 38 | +//! .config_file(Path::new("/home/cvisintin/.ssh/config"), ParseRule::STRICT) |
39 | 39 | //! .into(); |
40 | 40 | //! |
41 | 41 | //! // connect |
|
51 | 51 |
|
52 | 52 | #![doc(html_playground_url = "https://play.rust-lang.org")] |
53 | 53 |
|
54 | | -/** |
55 | | - * MIT License |
56 | | - * |
57 | | - * remotefs - Copyright (c) 2021 Christian Visintin |
58 | | - * |
59 | | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
60 | | - * of this software and associated documentation files (the "Software"), to deal |
61 | | - * in the Software without restriction, including without limitation the rights |
62 | | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
63 | | - * copies of the Software, and to permit persons to whom the Software is |
64 | | - * furnished to do so, subject to the following conditions: |
65 | | - * |
66 | | - * The above copyright notice and this permission notice shall be included in all |
67 | | - * copies or substantial portions of the Software. |
68 | | - * |
69 | | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
70 | | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
71 | | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
72 | | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
73 | | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
74 | | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
75 | | - * SOFTWARE. |
76 | | - */ |
77 | 54 | // -- crates |
78 | 55 | #[macro_use] |
79 | 56 | extern crate lazy_static; |
80 | 57 | #[macro_use] |
81 | 58 | extern crate log; |
82 | 59 |
|
83 | 60 | mod ssh; |
84 | | -pub use ssh::{ParseRule, ScpFs, SftpFs, SshKeyStorage, SshOpts}; |
| 61 | +pub use ssh::{ParseRule as SshConfigParseRule, ScpFs, SftpFs, SshKeyStorage, SshOpts}; |
85 | 62 |
|
86 | 63 | // -- utils |
87 | 64 | pub(crate) mod utils; |
|
0 commit comments