http-server-rs 0.0.15

Simple, zero-configuration command-line static HTTP server.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::path::PathBuf;

pub mod typescript;

#[derive(Debug)]
pub struct TransformerResult {
  pub code: String,
}

pub struct TransformerContext {
  /// The bytes of the input file
  pub content: Vec<u8>,
  /// Path to the source file
  pub path: PathBuf,
  /// The extension of the file being processed
  pub kind: String,
}