summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/rust.yml6
-rw-r--r--Cargo.toml4
-rw-r--r--benches/benchmarks.rs10
-rw-r--r--src/diag.rs4
-rw-r--r--src/main.rs12
-rw-r--r--tests/typeset.rs18
6 files changed, 27 insertions, 27 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index a9ddde3c..c01b53f9 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -20,7 +20,7 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v2
with:
- path: typstc
+ path: typst
- name: Checkout fontdock
uses: actions/checkout@v2
@@ -47,10 +47,10 @@ jobs:
uses: actions-rs/cargo@v1
with:
command: build
- args: --manifest-path typstc/Cargo.toml --all-features
+ args: --manifest-path typst/Cargo.toml --all-features
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
- args: --manifest-path typstc/Cargo.toml --all-features
+ args: --manifest-path typst/Cargo.toml --all-features
diff --git a/Cargo.toml b/Cargo.toml
index 49833b26..4589eb6d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,5 +1,5 @@
[package]
-name = "typstc"
+name = "typst"
version = "0.1.0"
authors = ["The Typst Project Developers"]
edition = "2018"
@@ -31,7 +31,7 @@ lto = true
bench = false
[[bin]]
-name = "typstc"
+name = "typst"
required-features = ["fs"]
[[test]]
diff --git a/benches/benchmarks.rs b/benches/benchmarks.rs
index 5f706e69..ea7fc652 100644
--- a/benches/benchmarks.rs
+++ b/benches/benchmarks.rs
@@ -4,11 +4,11 @@ use std::rc::Rc;
use criterion::{criterion_group, criterion_main, Criterion};
use fontdock::fs::{FsIndex, FsSource};
-use typstc::eval::{eval, State};
-use typstc::font::FontLoader;
-use typstc::layout::layout;
-use typstc::parse::parse;
-use typstc::typeset;
+use typst::eval::{eval, State};
+use typst::font::FontLoader;
+use typst::layout::layout;
+use typst::parse::parse;
+use typst::typeset;
const FONT_DIR: &str = "fonts";
const COMA: &str = include_str!("../tests/coma.typ");
diff --git a/src/diag.rs b/src/diag.rs
index 74bf894f..9f109be9 100644
--- a/src/diag.rs
+++ b/src/diag.rs
@@ -121,8 +121,8 @@ pub enum Deco {
/// Construct a diagnostic with [`Error`] level.
///
/// ```
-/// # use typstc::error;
-/// # use typstc::syntax::Span;
+/// # use typst::error;
+/// # use typst::syntax::Span;
/// # let span = Span::ZERO;
/// # let name = "";
/// // Create formatted error values.
diff --git a/src/main.rs b/src/main.rs
index 9bf693e4..578ceb9c 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -6,12 +6,12 @@ use std::rc::Rc;
use fontdock::fs::{FsIndex, FsSource};
-use typstc::diag::{Feedback, Pass};
-use typstc::eval::State;
-use typstc::export::pdf;
-use typstc::font::FontLoader;
-use typstc::parse::LineMap;
-use typstc::typeset;
+use typst::diag::{Feedback, Pass};
+use typst::eval::State;
+use typst::export::pdf;
+use typst::font::FontLoader;
+use typst::parse::LineMap;
+use typst::typeset;
fn main() {
let args: Vec<_> = std::env::args().collect();
diff --git a/tests/typeset.rs b/tests/typeset.rs
index 8ba1ed47..c2deca6a 100644
--- a/tests/typeset.rs
+++ b/tests/typeset.rs
@@ -10,15 +10,15 @@ use fontdock::fs::{FsIndex, FsSource};
use raqote::{DrawTarget, PathBuilder, SolidSource, Source, Transform, Vector};
use ttf_parser::OutlineBuilder;
-use typstc::diag::{Feedback, Pass};
-use typstc::eval::State;
-use typstc::export::pdf;
-use typstc::font::{FontLoader, SharedFontLoader};
-use typstc::geom::{Length, Point};
-use typstc::layout::{BoxLayout, LayoutElement};
-use typstc::parse::LineMap;
-use typstc::shaping::Shaped;
-use typstc::typeset;
+use typst::diag::{Feedback, Pass};
+use typst::eval::State;
+use typst::export::pdf;
+use typst::font::{FontLoader, SharedFontLoader};
+use typst::geom::{Length, Point};
+use typst::layout::{BoxLayout, LayoutElement};
+use typst::parse::LineMap;
+use typst::shaping::Shaped;
+use typst::typeset;
const TEST_DIR: &str = "tests";
const OUT_DIR: &str = "tests/out";