mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Rename typstc -> typst ✏
This commit is contained in:
parent
f29207d999
commit
1736bfc194
6
.github/workflows/rust.yml
vendored
6
.github/workflows/rust.yml
vendored
@ -20,7 +20,7 @@ jobs:
|
|||||||
- name: Checkout source code
|
- name: Checkout source code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
path: typstc
|
path: typst
|
||||||
|
|
||||||
- name: Checkout fontdock
|
- name: Checkout fontdock
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -47,10 +47,10 @@ jobs:
|
|||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --manifest-path typstc/Cargo.toml --all-features
|
args: --manifest-path typst/Cargo.toml --all-features
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --manifest-path typstc/Cargo.toml --all-features
|
args: --manifest-path typst/Cargo.toml --all-features
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "typstc"
|
name = "typst"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
authors = ["The Typst Project Developers"]
|
authors = ["The Typst Project Developers"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
@ -31,7 +31,7 @@ lto = true
|
|||||||
bench = false
|
bench = false
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
name = "typstc"
|
name = "typst"
|
||||||
required-features = ["fs"]
|
required-features = ["fs"]
|
||||||
|
|
||||||
[[test]]
|
[[test]]
|
||||||
|
@ -4,11 +4,11 @@ use std::rc::Rc;
|
|||||||
use criterion::{criterion_group, criterion_main, Criterion};
|
use criterion::{criterion_group, criterion_main, Criterion};
|
||||||
use fontdock::fs::{FsIndex, FsSource};
|
use fontdock::fs::{FsIndex, FsSource};
|
||||||
|
|
||||||
use typstc::eval::{eval, State};
|
use typst::eval::{eval, State};
|
||||||
use typstc::font::FontLoader;
|
use typst::font::FontLoader;
|
||||||
use typstc::layout::layout;
|
use typst::layout::layout;
|
||||||
use typstc::parse::parse;
|
use typst::parse::parse;
|
||||||
use typstc::typeset;
|
use typst::typeset;
|
||||||
|
|
||||||
const FONT_DIR: &str = "fonts";
|
const FONT_DIR: &str = "fonts";
|
||||||
const COMA: &str = include_str!("../tests/coma.typ");
|
const COMA: &str = include_str!("../tests/coma.typ");
|
||||||
|
@ -121,8 +121,8 @@ pub enum Deco {
|
|||||||
/// Construct a diagnostic with [`Error`] level.
|
/// Construct a diagnostic with [`Error`] level.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # use typstc::error;
|
/// # use typst::error;
|
||||||
/// # use typstc::syntax::Span;
|
/// # use typst::syntax::Span;
|
||||||
/// # let span = Span::ZERO;
|
/// # let span = Span::ZERO;
|
||||||
/// # let name = "";
|
/// # let name = "";
|
||||||
/// // Create formatted error values.
|
/// // Create formatted error values.
|
||||||
|
12
src/main.rs
12
src/main.rs
@ -6,12 +6,12 @@ use std::rc::Rc;
|
|||||||
|
|
||||||
use fontdock::fs::{FsIndex, FsSource};
|
use fontdock::fs::{FsIndex, FsSource};
|
||||||
|
|
||||||
use typstc::diag::{Feedback, Pass};
|
use typst::diag::{Feedback, Pass};
|
||||||
use typstc::eval::State;
|
use typst::eval::State;
|
||||||
use typstc::export::pdf;
|
use typst::export::pdf;
|
||||||
use typstc::font::FontLoader;
|
use typst::font::FontLoader;
|
||||||
use typstc::parse::LineMap;
|
use typst::parse::LineMap;
|
||||||
use typstc::typeset;
|
use typst::typeset;
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let args: Vec<_> = std::env::args().collect();
|
let args: Vec<_> = std::env::args().collect();
|
||||||
|
@ -10,15 +10,15 @@ use fontdock::fs::{FsIndex, FsSource};
|
|||||||
use raqote::{DrawTarget, PathBuilder, SolidSource, Source, Transform, Vector};
|
use raqote::{DrawTarget, PathBuilder, SolidSource, Source, Transform, Vector};
|
||||||
use ttf_parser::OutlineBuilder;
|
use ttf_parser::OutlineBuilder;
|
||||||
|
|
||||||
use typstc::diag::{Feedback, Pass};
|
use typst::diag::{Feedback, Pass};
|
||||||
use typstc::eval::State;
|
use typst::eval::State;
|
||||||
use typstc::export::pdf;
|
use typst::export::pdf;
|
||||||
use typstc::font::{FontLoader, SharedFontLoader};
|
use typst::font::{FontLoader, SharedFontLoader};
|
||||||
use typstc::geom::{Length, Point};
|
use typst::geom::{Length, Point};
|
||||||
use typstc::layout::{BoxLayout, LayoutElement};
|
use typst::layout::{BoxLayout, LayoutElement};
|
||||||
use typstc::parse::LineMap;
|
use typst::parse::LineMap;
|
||||||
use typstc::shaping::Shaped;
|
use typst::shaping::Shaped;
|
||||||
use typstc::typeset;
|
use typst::typeset;
|
||||||
|
|
||||||
const TEST_DIR: &str = "tests";
|
const TEST_DIR: &str = "tests";
|
||||||
const OUT_DIR: &str = "tests/out";
|
const OUT_DIR: &str = "tests/out";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user