docs.rs failed to build staticfile-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
staticfile-0.5.0
staticfile
Static file-serving handler for the Iron web framework.
Example
This example uses the mounting handler to serve files from several directories.
let mut mount = new;
// Serve the shared JS/CSS at /
mount.mount;
// Serve the static file docs at /doc/
mount.mount;
// Serve the source code at /src/
mount.mount;
new.http.unwrap;
See examples/doc_server.rs
for a complete example that you can compile.
Overview
- Serve static files from a given path.
It works well in combination with the mounting handler.
Installation
If you're using a Cargo.toml
to manage dependencies, just add the staticfile
package to the [dependencies]
section of the toml:
= "*"
Otherwise, cargo build
, and the rlib will be in your target
directory.
Documentation
Along with the online documentation,
you can build a local copy with cargo doc
.
Get Help
One of us (@reem, @zzmp,
@theptrk, @mcreinhard)
is usually on #iron
on the mozilla irc. Come say hi and ask any questions you might have.
We are also usually on #rust
and #rust-webdev
.