Skip to content

A static files server helper for the tide web framework (not production ready)

Notifications You must be signed in to change notification settings

tomhoule/tide-static-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tide-static-files

This is a working prototype intended to gather feedback on static file serving in tide. It uses tokio-fs.

See the docs and tests for more info.

use tide_static_files::StaticFiles;

fn main() {
    let mut app = tide::App::new(());

    app.at("/assets/*").get(StaticFiles::new("/var/lib/my-app/assets"));

    ...
}

About

A static files server helper for the tide web framework (not production ready)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages