mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Bump version
This commit is contained in:
parent
205b9f3f25
commit
b3faef4b80
12
Cargo.lock
generated
12
Cargo.lock
generated
@ -1507,7 +1507,7 @@ checksum = "6af6ae20167a9ece4bcb41af5b80f8a1f1df981f6391189ce00fd257af04126a"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typst"
|
name = "typst"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags",
|
"bitflags",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
@ -1543,7 +1543,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typst-cli"
|
name = "typst-cli"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"chrono",
|
"chrono",
|
||||||
"clap",
|
"clap",
|
||||||
@ -1564,7 +1564,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typst-docs"
|
name = "typst-docs"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"comemo",
|
"comemo",
|
||||||
"heck",
|
"heck",
|
||||||
@ -1582,7 +1582,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typst-library"
|
name = "typst-library"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"comemo",
|
"comemo",
|
||||||
"csv",
|
"csv",
|
||||||
@ -1611,7 +1611,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typst-macros"
|
name = "typst-macros"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"heck",
|
"heck",
|
||||||
"proc-macro2",
|
"proc-macro2",
|
||||||
@ -1622,7 +1622,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "typst-tests"
|
name = "typst-tests"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"comemo",
|
"comemo",
|
||||||
"elsa",
|
"elsa",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst"
|
name = "typst"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -137,12 +137,13 @@ compilation.
|
|||||||
typst watch file.typ
|
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
|
```sh
|
||||||
# Adds additional directories to search for fonts.
|
# Adds additional directories to search for fonts.
|
||||||
typst --font-path path/to/fonts compile file.typ
|
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
|
typst --font-path path/to/fonts fonts
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-cli"
|
name = "typst-cli"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -6,12 +6,14 @@ fn main() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let version = Command::new("git")
|
let pkg = env!("CARGO_PKG_VERSION");
|
||||||
|
let hash = Command::new("git")
|
||||||
.args(["rev-parse", "HEAD"])
|
.args(["rev-parse", "HEAD"])
|
||||||
.output()
|
.output()
|
||||||
.ok()
|
.ok()
|
||||||
.filter(|output| output.status.success())
|
.filter(|output| output.status.success())
|
||||||
.and_then(|output| String::from_utf8(output.stdout.get(..8)?.into()).ok())
|
.and_then(|output| String::from_utf8(output.stdout.get(..8)?.into()).ok())
|
||||||
.unwrap_or_else(|| "(unknown version)".into());
|
.unwrap_or_else(|| "(unknown hash)".into());
|
||||||
println!("cargo:rustc-env=TYPST_VERSION={version}");
|
|
||||||
|
println!("cargo:rustc-env=TYPST_VERSION={pkg} ({hash})");
|
||||||
}
|
}
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-docs"
|
name = "typst-docs"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[lib]
|
[lib]
|
||||||
doctest = false
|
doctest = false
|
||||||
|
@ -5,7 +5,7 @@ description: |
|
|||||||
---
|
---
|
||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
## Unreleased
|
## April 04, 2023 (v0.1)
|
||||||
- **Breaking changes:**
|
- **Breaking changes:**
|
||||||
- When using the CLI, you now have to use subcommands:
|
- When using the CLI, you now have to use subcommands:
|
||||||
- `typst compile file.typ` or `typst c file.typ` to create a PDF
|
- `typst compile file.typ` or `typst c file.typ` to create a PDF
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-library"
|
name = "typst-library"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-macros"
|
name = "typst-macros"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typst-tests"
|
name = "typst-tests"
|
||||||
version = "0.0.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
publish = false
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
typst = { path = ".." }
|
typst = { path = ".." }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user