Skip to content

Commit 6fe55ac

Browse files
committed
fix: docs
1 parent 291a2f2 commit 6fe55ac

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

src/lib.rs

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
//! First of all you need to add **remotefs** and the client to your project dependencies:
1111
//!
1212
//! ```toml
13-
//! remotefs = "^0.2.0"
14-
//! remotefs-ssh = "^0.1.0"
13+
//! remotefs = "^0.2"
14+
//! remotefs-ssh = "^0.2"
1515
//! ```
1616
//!
1717
//! these features are supported:
@@ -28,14 +28,14 @@
2828
//!
2929
//! // import remotefs trait and client
3030
//! use remotefs::RemoteFs;
31-
//! use remotefs::client::ssh::{SftpFs, SshOpts};
31+
//! use remotefs_ssh::{SshConfigParseRule, SftpFs, SshOpts};
3232
//! use std::path::Path;
3333
//!
3434
//! let mut client: SftpFs = SshOpts::new("127.0.0.1")
3535
//! .port(22)
3636
//! .username("test")
3737
//! .password("password")
38-
//! .config_file(Path::new("/home/cvisintin/.ssh/config"))
38+
//! .config_file(Path::new("/home/cvisintin/.ssh/config"), ParseRule::STRICT)
3939
//! .into();
4040
//!
4141
//! // connect
@@ -51,37 +51,14 @@
5151
5252
#![doc(html_playground_url = "https://play.rust-lang.org")]
5353

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-
*/
7754
// -- crates
7855
#[macro_use]
7956
extern crate lazy_static;
8057
#[macro_use]
8158
extern crate log;
8259

8360
mod ssh;
84-
pub use ssh::{ParseRule, ScpFs, SftpFs, SshKeyStorage, SshOpts};
61+
pub use ssh::{ParseRule as SshConfigParseRule, ScpFs, SftpFs, SshKeyStorage, SshOpts};
8562

8663
// -- utils
8764
pub(crate) mod utils;

0 commit comments

Comments
 (0)