diff --git a/Cargo.lock b/Cargo.lock index b30dce057..6cc43ac7d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1507,7 +1507,7 @@ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a" [[package]] name = "typst" -version = "0.0.0" +version = "0.1.0" dependencies = [ "bitflags", "bytemuck", @@ -1543,7 +1543,7 @@ dependencies = [ [[package]] name = "typst-cli" -version = "0.0.0" +version = "0.1.0" dependencies = [ "chrono", "clap", @@ -1564,7 +1564,7 @@ dependencies = [ [[package]] name = "typst-docs" -version = "0.0.0" +version = "0.1.0" dependencies = [ "comemo", "heck", @@ -1582,7 +1582,7 @@ dependencies = [ [[package]] name = "typst-library" -version = "0.0.0" +version = "0.1.0" dependencies = [ "comemo", "csv", @@ -1611,7 +1611,7 @@ dependencies = [ [[package]] name = "typst-macros" -version = "0.0.0" +version = "0.1.0" dependencies = [ "heck", "proc-macro2", @@ -1622,7 +1622,7 @@ dependencies = [ [[package]] name = "typst-tests" -version = "0.0.0" +version = "0.1.0" dependencies = [ "comemo", "elsa", diff --git a/Cargo.toml b/Cargo.toml index 3fe010947..bd5ad3207 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typst" -version = "0.0.0" +version = "0.1.0" authors = ["The Typst Project Developers"] edition = "2021" diff --git a/README.md b/README.md index 71e558166..343018b16 100644 --- a/README.md +++ b/README.md @@ -137,12 +137,13 @@ compilation. typst watch file.typ ``` -You can also add custom font paths for your project and list all of the discovered fonts: +Typst further allows you to add custom font paths for your project and list all +of the fonts it discovered: ```sh # Adds additional directories to search for fonts. typst --font-path path/to/fonts compile file.typ -# Lists all of the discovered fonts. +# Lists all of the discovered fonts in the system and the given directory. typst --font-path path/to/fonts fonts ``` diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 8b0f35173..d5178b540 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typst-cli" -version = "0.0.0" +version = "0.1.0" authors = ["The Typst Project Developers"] edition = "2021" diff --git a/cli/build.rs b/cli/build.rs index 47809487d..014960f4f 100644 --- a/cli/build.rs +++ b/cli/build.rs @@ -6,12 +6,14 @@ fn main() { return; } - let version = Command::new("git") + let pkg = env!("CARGO_PKG_VERSION"); + let hash = Command::new("git") .args(["rev-parse", "HEAD"]) .output() .ok() .filter(|output| output.status.success()) .and_then(|output| String::from_utf8(output.stdout.get(..8)?.into()).ok()) - .unwrap_or_else(|| "(unknown version)".into()); - println!("cargo:rustc-env=TYPST_VERSION={version}"); + .unwrap_or_else(|| "(unknown hash)".into()); + + println!("cargo:rustc-env=TYPST_VERSION={pkg} ({hash})"); } diff --git a/docs/Cargo.toml b/docs/Cargo.toml index ac21b20c2..f86df530a 100644 --- a/docs/Cargo.toml +++ b/docs/Cargo.toml @@ -1,8 +1,9 @@ [package] name = "typst-docs" -version = "0.0.0" +version = "0.1.0" authors = ["The Typst Project Developers"] edition = "2021" +publish = false [lib] doctest = false diff --git a/docs/src/general/changelog.md b/docs/src/general/changelog.md index a2b2ae9dc..317afc30f 100644 --- a/docs/src/general/changelog.md +++ b/docs/src/general/changelog.md @@ -5,7 +5,7 @@ description: | --- # Changelog -## Unreleased +## April 04, 2023 (v0.1) - **Breaking changes:** - When using the CLI, you now have to use subcommands: - `typst compile file.typ` or `typst c file.typ` to create a PDF diff --git a/library/Cargo.toml b/library/Cargo.toml index 798e2a371..0b754dd2f 100644 --- a/library/Cargo.toml +++ b/library/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typst-library" -version = "0.0.0" +version = "0.1.0" authors = ["The Typst Project Developers"] edition = "2021" diff --git a/macros/Cargo.toml b/macros/Cargo.toml index 24d537be9..100b0be28 100644 --- a/macros/Cargo.toml +++ b/macros/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "typst-macros" -version = "0.0.0" +version = "0.1.0" authors = ["The Typst Project Developers"] edition = "2021" diff --git a/tests/Cargo.toml b/tests/Cargo.toml index 8bc70c9a2..ff129513d 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -1,8 +1,9 @@ [package] name = "typst-tests" -version = "0.0.0" +version = "0.1.0" authors = ["The Typst Project Developers"] edition = "2021" +publish = false [dev-dependencies] typst = { path = ".." }