Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
laurmaedje committed Apr 4, 2023
1 parent 205b9f3 commit b3faef4
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 18 deletions.
12 changes: 6 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typst"
version = "0.0.0"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2021"

Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
2 changes: 1 addition & 1 deletion cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typst-cli"
version = "0.0.0"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2021"

Expand Down
8 changes: 5 additions & 3 deletions cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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})");
}
3 changes: 2 additions & 1 deletion docs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/src/general/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion library/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typst-library"
version = "0.0.0"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion macros/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "typst-macros"
version = "0.0.0"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2021"

Expand Down
3 changes: 2 additions & 1 deletion tests/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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 = ".." }
Expand Down

0 comments on commit b3faef4

Please sign in to comment.