Skip to content

Commit 74321e9

Browse files
committed
feat: remotefs 0.3
1 parent 6b99298 commit 74321e9

File tree

7 files changed

+37
-24
lines changed

7 files changed

+37
-24
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
- [Changelog](#changelog)
4+
- [0.4.0](#040)
45
- [0.3.1](#031)
56
- [0.3.0](#030)
67
- [0.2.1](#021)
@@ -14,6 +15,12 @@
1415

1516
---
1617

18+
## 0.4.0
19+
20+
Released on 30/09/2024
21+
22+
- bump `remotefs` to `0.3.0`
23+
1724
## 0.3.1
1825

1926
Released on 09/07/2024

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Always mind that your suggestion, may be rejected: I'll always provide a feedbac
7474

7575
At the moment, these kind of contributions are more appreciated and should be preferred:
7676

77-
- Fix for issues described in [Known Issues](./README.md#known-issues-) or [issues reported by the community](https://github.com/veeso/remotefs/issues)
77+
- Fix for issues described in [Known Issues](./README.md#known-issues-) or [issues reported by the community](https://github.com/remotefs-rs/remotefs/issues)
7878
- New file transfers: for further details see [Implementing File Transfer](#implementing-file-transfers)
7979
- Code optimizations: any optimization to the code is welcome
8080

Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ categories = ["network-programming"]
44
description = "remotefs SSH client library"
55
documentation = "https://docs.rs/remotefs-ssh"
66
edition = "2021"
7-
homepage = "https://veeso.github.io/remotefs-rs-ssh/"
87
include = ["src/**/*", "LICENSE", "README.md", "CHANGELOG.md"]
98
keywords = ["remotefs", "ssh-client", "scp-client", "sftp-client"]
109
license = "MIT"
1110
name = "remotefs-ssh"
1211
readme = "README.md"
13-
repository = "https://github.com/veeso/remotefs-rs-ssh"
14-
version = "0.3.1"
12+
repository = "https://github.com/remotefs-rs/remotefs-rs-ssh"
13+
version = "0.4.0"
1514

1615
[dependencies]
1716
chrono = "^0.4"
1817
lazy-regex = "3"
1918
log = "^0.4"
20-
remotefs = "^0.2"
19+
remotefs = "^0.3"
2120
ssh2-config = "^0.2"
2221
ssh2 = "^0.9"
2322

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@
1111
<p align="center">~ Remotefs SSH client ~</p>
1212

1313
<p align="center">Developed by <a href="https://veeso.github.io/" target="_blank">@veeso</a></p>
14-
<p align="center">Current version: 0.3.1 (09/07/2024)</p>
14+
<p align="center">Current version: 0.4.0 (30/09/2024)</p>
1515

1616
<p align="center">
1717
<a href="https://opensource.org/licenses/MIT"
1818
><img
1919
src="https://img.shields.io/badge/License-MIT-teal.svg"
2020
alt="License-MIT"
2121
/></a>
22-
<a href="https://github.com/veeso/remotefs-rs-ssh/stargazers"
22+
<a href="https://github.com/remotefs-rs/remotefs-rs-ssh/stargazers"
2323
><img
24-
src="https://img.shields.io/github/stars/veeso/remotefs-rs-ssh.svg"
24+
src="https://img.shields.io/github/stars/remotefs-rs/remotefs-rs-ssh.svg"
2525
alt="Repo stars"
2626
/></a>
2727
<a href="https://crates.io/crates/remotefs-ssh"
@@ -41,24 +41,24 @@
4141
/></a>
4242
</p>
4343
<p align="center">
44-
<a href="https://github.com/veeso/remotefs-rs-ssh/actions"
44+
<a href="https://github.com/remotefs-rs/remotefs-rs-ssh/actions"
4545
><img
46-
src="https://github.com/veeso/remotefs-rs-ssh/workflows/Linux/badge.svg"
46+
src="https://github.com/remotefs-rs/remotefs-rs-ssh/workflows/Linux/badge.svg"
4747
alt="Linux CI"
4848
/></a>
49-
<a href="https://github.com/veeso/remotefs-rs-ssh/actions"
49+
<a href="https://github.com/remotefs-rs/remotefs-rs-ssh/actions"
5050
><img
51-
src="https://github.com/veeso/remotefs-rs-ssh/workflows/MacOS/badge.svg"
51+
src="https://github.com/remotefs-rs/remotefs-rs-ssh/workflows/MacOS/badge.svg"
5252
alt="MacOS CI"
5353
/></a>
54-
<a href="https://github.com/veeso/remotefs-rs-ssh/actions"
54+
<a href="https://github.com/remotefs-rs/remotefs-rs-ssh/actions"
5555
><img
56-
src="https://github.com/veeso/remotefs-rs-ssh/workflows/Windows/badge.svg"
56+
src="https://github.com/remotefs-rs/remotefs-rs-ssh/workflows/Windows/badge.svg"
5757
alt="Windows CI"
5858
/></a>
59-
<a href="https://coveralls.io/github/veeso/remotefs-rs-ssh"
59+
<a href="https://coveralls.io/github/remotefs-rs/remotefs-rs-ssh"
6060
><img
61-
src="https://coveralls.io/repos/github/veeso/remotefs-rs-ssh/badge.svg"
61+
src="https://coveralls.io/repos/github/remotefs-rs/remotefs-rs-ssh/badge.svg"
6262
alt="Coveralls"
6363
/></a>
6464
<a href="https://docs.rs/remotefs-ssh"
@@ -72,7 +72,7 @@
7272

7373
## About remotefs-ssh ☁️
7474

75-
remotefs-ssh is a client implementation for [remotefs](https://github.com/veeso/remotefs-rs), providing support for the SFTP/SCP protocol.
75+
remotefs-ssh is a client implementation for [remotefs](https://github.com/remotefs-rs/remotefs-rs), providing support for the SFTP/SCP protocol.
7676

7777
---
7878

@@ -81,7 +81,8 @@ remotefs-ssh is a client implementation for [remotefs](https://github.com/veeso/
8181
First of all, add `remotefs-ssh` to your project dependencies:
8282

8383
```toml
84-
remotefs-ssh = "^0.3"
84+
remotefs = "0.3"
85+
remotefs-ssh = "^0.4"
8586
```
8687

8788
these features are supported:

src/lib.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
//! # remotefs-ssh
55
//!
6-
//! remotefs-ssh is a client implementation for [remotefs](https://github.com/veeso/remotefs-rs), providing support for the SCP/SFTP protocols.
6+
//! remotefs-ssh is a client implementation for [remotefs](https://github.com/remotefs-rs/remotefs-rs), providing support for the SCP/SFTP protocols.
77
//!
88
//! ## Get started
99
//!
@@ -50,6 +50,12 @@
5050
//!
5151
5252
#![doc(html_playground_url = "https://play.rust-lang.org")]
53+
#![doc(
54+
html_favicon_url = "https://raw.githubusercontent.com/remotefs-rs/remotefs-rs/main/assets/logo-128.png"
55+
)]
56+
#![doc(
57+
html_logo_url = "https://raw.githubusercontent.com/remotefs-rs/remotefs-rs/main/assets/logo.png"
58+
)]
5359

5460
// -- crates
5561
#[macro_use]

src/ssh/scp.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ impl RemoteFs for ScpFs {
611611
metadata.size,
612612
Some((modified, accessed)),
613613
) {
614-
Ok(channel) => Ok(WriteStream::from(Box::new(channel) as Box<dyn Write>)),
614+
Ok(channel) => Ok(WriteStream::from(Box::new(channel) as Box<dyn Write + Send>)),
615615
Err(err) => {
616616
error!("Failed to create file: {}", err);
617617
Err(RemoteError::new_ex(RemoteErrorType::FileCreateDenied, err))
@@ -630,7 +630,7 @@ impl RemoteFs for ScpFs {
630630
self.session.as_mut().unwrap().set_blocking(true);
631631
trace!("blocked channel");
632632
match self.session.as_mut().unwrap().scp_recv(path.as_path()) {
633-
Ok((channel, _)) => Ok(ReadStream::from(Box::new(channel) as Box<dyn Read>)),
633+
Ok((channel, _)) => Ok(ReadStream::from(Box::new(channel) as Box<dyn Read + Send>)),
634634
Err(err) => {
635635
error!("Failed to open file: {}", err);
636636
Err(RemoteError::new_ex(RemoteErrorType::CouldNotOpenFile, err))

src/ssh/sftp.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,13 +465,13 @@ impl RemoteFs for SftpFs {
465465
})
466466
}
467467

468-
// -- override (std::io::copy is VERY slow on SFTP <https://github.com/veeso/remotefs-rs/issues/6>)
468+
// -- override (std::io::copy is VERY slow on SFTP <https://github.com/remotefs-rs/remotefs-rs/issues/6>)
469469

470470
fn append_file(
471471
&mut self,
472472
path: &Path,
473473
metadata: &Metadata,
474-
mut reader: Box<dyn Read>,
474+
mut reader: Box<dyn Read + Send>,
475475
) -> RemoteResult<u64> {
476476
if self.is_connected() {
477477
let mut stream = self.append(path, metadata)?;
@@ -505,7 +505,7 @@ impl RemoteFs for SftpFs {
505505
&mut self,
506506
path: &Path,
507507
metadata: &Metadata,
508-
mut reader: Box<dyn std::io::Read>,
508+
mut reader: Box<dyn std::io::Read + Send>,
509509
) -> RemoteResult<u64> {
510510
if self.is_connected() {
511511
let mut stream = self.create(path, metadata)?;

0 commit comments

Comments
 (0)