{"id":13439822,"url":"https://github.com/mattnenterprise/rust-ftp","last_synced_at":"2026-04-04T12:57:49.019Z","repository":{"id":23618900,"uuid":"26988319","full_name":"mattnenterprise/rust-ftp","owner":"mattnenterprise","description":"FTP client for Rust","archived":false,"fork":false,"pushed_at":"2023-08-04T08:03:33.000Z","size":6697,"stargazers_count":191,"open_issues_count":36,"forks_count":57,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-03-18T09:44:36.901Z","etag":null,"topics":["ftp","ftp-client","rust","rust-ftp"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattnenterprise.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-22T04:16:13.000Z","updated_at":"2026-03-06T10:30:28.000Z","dependencies_parsed_at":"2024-06-18T21:28:39.035Z","dependency_job_id":"1e47fc4d-29ab-4613-a8eb-7a3ab8939bfd","html_url":"https://github.com/mattnenterprise/rust-ftp","commit_stats":{"total_commits":106,"total_committers":19,"mean_commits":5.578947368421052,"dds":0.5660377358490566,"last_synced_commit":"35b2006556dbf33eed2a73843987205b648ce2e2"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/mattnenterprise/rust-ftp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattnenterprise%2Frust-ftp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattnenterprise%2Frust-ftp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattnenterprise%2Frust-ftp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattnenterprise%2Frust-ftp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattnenterprise","download_url":"https://codeload.github.com/mattnenterprise/rust-ftp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattnenterprise%2Frust-ftp/sbom","scorecard":{"id":627819,"data":{"date":"2025-08-11","repo":{"name":"github.com/mattnenterprise/rust-ftp","commit":"35b2006556dbf33eed2a73843987205b648ce2e2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"name":"Code-Review","score":4,"reason":"Found 14/30 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE-APACHE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE-APACHE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:65: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:77: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:82: update your workflow using https://app.stepsecurity.io/secureworkflow/mattnenterprise/rust-ftp/ci.yml/master?enable=pin","Warn: containerImage not pinned by hash: tests/Dockerfile:1: pin your Docker image by updating ubuntu:20.04 to ubuntu:20.04@sha256:8feb4d8ca5354def3d8fce243717141ce31e2c428701f6682bd2fafe15388214","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   9 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T06:58:23.427Z","repository_id":23618900,"created_at":"2025-08-21T06:58:23.427Z","updated_at":"2025-08-21T06:58:23.427Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31400460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ftp","ftp-client","rust","rust-ftp"],"created_at":"2024-07-31T03:01:17.390Z","updated_at":"2026-04-04T12:57:49.002Z","avatar_url":"https://github.com/mattnenterprise.png","language":"Rust","funding_links":[],"categories":["Libraries","库 Libraries","Rust","库"],"sub_categories":["Network programming","网络编程 Network programming","网络编程"],"readme":"# rust-ftp\n\nFTP client for Rust\n\n[![Number of Crate Downloads](https://img.shields.io/crates/d/ftp.svg)](https://crates.io/crates/ftp)\n[![Crate Version](https://img.shields.io/crates/v/ftp.svg)](https://crates.io/crates/ftp)\n[![Crate License](https://img.shields.io/crates/l/ftp.svg)](https://crates.io/crates/ftp)\n[![Build Status](https://github.com/mattnenterprise/rust-ftp/actions/workflows/ci.yml/badge.svg)](https://github.com/mattnenterprise/rust-ftp/actions)\n[![Coverage Status](https://codecov.io/gh/mattnenterprise/rust-ftp/branch/master/graph/badge.svg?token=tQUj3RyZxI)](https://codecov.io/gh/mattnenterprise/rust-ftp)\n\n[Documentation](https://docs.rs/ftp/)\n\n---\n\n- [rust-ftp](#rust-ftp)\n  - [Installation](#installation)\n  - [Usage](#usage)\n  - [License](#license)\n    - [Contribution](#contribution)\n  - [Development environment](#development-environment)\n\n## Installation\n\nFTPS support is achieved through [rust-native-tls](https://github.com/sfackler/rust-native-tls) and is disabled by default. To enable it `secure` should be activated in `Cargo.toml`.\n\n```toml\n[dependencies]\nftp = { version = \"\u003cversion\u003e\", features = [\"secure\"] }\n```\n\n## Usage\n\n```rust\nextern crate ftp;\n\nuse std::str;\nuse std::io::Cursor;\nuse ftp::FtpStream;\n\nfn main() {\n    // Create a connection to an FTP server and authenticate to it.\n    let mut ftp_stream = FtpStream::connect(\"127.0.0.1:21\").unwrap();\n    let _ = ftp_stream.login(\"username\", \"password\").unwrap();\n\n    // Get the current directory that the client will be reading from and writing to.\n    println!(\"Current directory: {}\", ftp_stream.pwd().unwrap());\n\n    // Change into a new directory, relative to the one we are currently in.\n    let _ = ftp_stream.cwd(\"test_data\").unwrap();\n\n    // Retrieve (GET) a file from the FTP server in the current working directory.\n    let remote_file = ftp_stream.simple_retr(\"ftpext-charter.txt\").unwrap();\n    println!(\"Read file with contents\\n{}\\n\", str::from_utf8(\u0026remote_file.into_inner()).unwrap());\n\n    // Store (PUT) a file from the client to the current working directory of the server.\n    let mut reader = Cursor::new(\"Hello from the Rust \\\"ftp\\\" crate!\".as_bytes());\n    let _ = ftp_stream.put(\"greeting.txt\", \u0026mut reader);\n    println!(\"Successfully wrote greeting.txt\");\n\n    // Terminate the connection to the server.\n    let _ = ftp_stream.quit();\n}\n\n```\n\n## License\n\nLicensed under either of\n\n- Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n- MIT license ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally\nsubmitted for inclusion in the work by you, as defined in the Apache-2.0\nlicense, shall be dual licensed as above, without any additional terms or\nconditions.\n\n## Development environment\n\nAll you need to develop rust-ftp and run the tests is Rust and Docker.\nThe `tests` folder contains a `Dockerfile` that installs and configures\nthe vsftpd server.\n\nTo create the Docker image:\n\n```bash\ndocker build -t ftp-server tests\n```\n\nTo start the FTP server that is tested against:\n\n```bash\ntests/ftp-server.sh\n```\n\nThis script runs the `ftp-server` image in detached mode and starts the `vsftpd` daemon. It binds ports 21 (FTP) as well as the range 65000-65010 for passive connections.\n\nOnce you have an instance running, to run tests type:\n\n```bash\ncargo test --features secure\n```\n\nThe following commands can be useful:\n\n```bash\n# List running containers of ftp-server image\n# (to include stopped containers use -a option)\ndocker ps --filter ancestor=ftp-server\n\n# To stop and remove a container\ndocker stop container_name\ndocker rm container_name\n\n# To remove the image\ndocker rmi ftp-server\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattnenterprise%2Frust-ftp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattnenterprise%2Frust-ftp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattnenterprise%2Frust-ftp/lists"}