From 1736bfc194396d026bee1a560ce41d12b92a6d5b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 13 Oct 2020 11:47:29 +0200 Subject: [PATCH] =?UTF-8?q?Rename=20typstc=20->=20typst=20=E2=9C=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/rust.yml | 6 +++--- Cargo.toml | 4 ++-- benches/benchmarks.rs | 10 +++++----- src/diag.rs | 4 ++-- src/main.rs | 12 ++++++------ tests/typeset.rs | 18 +++++++++--------- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a9ddde3cd..c01b53f94 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 49833b262..4589eb6dc 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 5f706e694..ea7fc6521 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 74bf894ff..9f109be98 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 9bf693e46..578ceb9ca 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 8ba1ed470..c2deca6a3 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";