Skip to content

v0.7.0

Latest
Compare
Choose a tag to compare
@lomirus lomirus released this 23 Dec 04:44
· 56 commits to main since this release

Features

  • Add --open/-o option, which will open the page in browser automatically
  • Return an error page which supports live-reload when failing to access any page, in order to make sure that live-reload won't be interrupted. For example, when attempting to access a page that does not exist, the server would response a blank page in the previous version, and even when this file was modified, the page wouldn't be refreshed.

Refactor

  • The short name of --host option was renamed to -H in order to avoid conflict with -h (--help)
  • The default value of --host/-H was changed to 0.0.0.0
  • The default value of --port/-p was changed to 0

API

  • Revamp the API

Before:

listen("127.0.0.1", 8080, "./").await?;

After:

listen("127.0.0.1:8080", "./").await?.start().await?;

CI

  • Add test case to reduce potential mistakes

Dependencies

  • Replace async-std with tokio
  • Replace tide & tide-websockets & uuid with axum
  • Bump env_logger from 0.10.0 to 0.10.1
  • Bump clap from 4.4.6 to 4.4.11
  • Add futures, open as dependency
  • Add reqwest as dev dependency