-
breaking: Change casing of
ProtoBuf
toProtobuf
(#1595) -
breaking:
SpaRouter
has been removed. UseServeDir
andServeFile
fromtower-http
instead:// before Router::new().merge(SpaRouter::new("/assets", "dist")); // with ServeDir Router::new().nest_service("/assets", ServeDir::new("dist")); // before with `index_file` Router::new().merge(SpaRouter::new("/assets", "dist").index_file("index.html")); // with ServeDir + ServeFile Router::new().nest_service( "/assets", ServeDir::new("dist").not_found_service(ServeFile::new("dist/index.html")), );
See the static-file-server-example for more examples (#1784)