Uses old Rust 2015
|0.2.2||Apr 4, 2022|
|0.2.1||Nov 27, 2018|
|0.2.0||Dec 6, 2016|
45 downloads per month
Used in allenap-tftp-offload
⚠️ Not supported
This crate is no longer supported and will not be updated. It was an experiment and is unlikely to be useful to anyone in its present state. The code itself may be a minor curiosity... but probably not. This is not the TFTP goodness you're looking for. Sorry!
allenap's TFTP library for Rust
This library will let you build a read-only TFTP server in Rust with the following features:
RFC-1350 - The TFTP Protocol (Revision 2)
RFC-2347 - TFTP Option Extension
RFC-2348 - TFTP Blocksize Option
RFC-2349 - TFTP Timeout Interval and Transfer Size Options
blknorollover, allowing tranfers of unlimited size.
The places to start are the top-level
serve function, the
trait, and the
The intent is to support writable servers, and clients. The code is alpha level right now, and given time I would change quite a lot, but for now this works.
I learned a lot from reading the code in Arjan Topolovec's rust-tftp. In an ideal world I would have instead contributed back to that, and I may yet do that, but I started on this project as a way to learn Rust.
I've read a lot of material about Rust and a lot of Rust code, but writing code has been the best way to internalise that knowledge, and to find out what I thought I knew but didn't. Starting from scratch with rust-tftp as a guide has worked well for me.
Thank you Arjan Topolovec.
Fix the layering violation used to efficiently construct outgoing
windowsizeoption; see RFC-7440.
More unit tests.
Some integration tests.
Clean-ups, refactorings, and so on: it's kind of rough-n-ready right now.