diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-07-02 19:59:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-07-02 20:07:43 +0200 |
| commit | ebfdb1dafa430786db10dad2ef7d5467c1bdbed1 (patch) | |
| tree | 2bbc24ddb4124c4bb14dec0e536129d4de37b056 | |
| parent | 3ab19185093d7709f824b95b979060ce125389d8 (diff) | |
Move everything into `crates/` directory
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | CONTRIBUTING.md | 4 | ||||
| -rw-r--r-- | Cargo.lock | 32 | ||||
| -rw-r--r-- | Cargo.toml | 61 | ||||
| -rw-r--r-- | NOTICE | 13 | ||||
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | crates/typst-cli/Cargo.toml (renamed from cli/Cargo.toml) | 4 | ||||
| -rw-r--r-- | crates/typst-cli/build.rs (renamed from cli/build.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/args.rs (renamed from cli/src/args.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/compile.rs (renamed from cli/src/compile.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/fonts.rs (renamed from cli/src/fonts.rs) | 2 | ||||
| -rw-r--r-- | crates/typst-cli/src/main.rs (renamed from cli/src/main.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/package.rs (renamed from cli/src/package.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/tracing.rs (renamed from cli/src/tracing.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/watch.rs (renamed from cli/src/watch.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-cli/src/world.rs (renamed from cli/src/world.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-docs/Cargo.toml (renamed from docs/Cargo.toml) | 4 | ||||
| -rw-r--r-- | crates/typst-docs/src/contribs.rs (renamed from docs/src/contribs.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-docs/src/html.rs (renamed from docs/src/html.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-docs/src/lib.rs (renamed from docs/src/lib.rs) | 20 | ||||
| -rw-r--r-- | crates/typst-library/Cargo.toml (renamed from library/Cargo.toml) | 2 | ||||
| -rw-r--r-- | crates/typst-library/assets/cj_linebreak_data.postcard (renamed from library/assets/cj_linebreak_data.postcard) | bin | 18848 -> 18848 bytes | |||
| -rw-r--r-- | crates/typst-library/assets/icudata.postcard (renamed from library/assets/icudata.postcard) | bin | 352005 -> 352005 bytes | |||
| -rw-r--r-- | crates/typst-library/assets/syntect.bin (renamed from library/assets/syntect.bin) | bin | 687378 -> 687378 bytes | |||
| -rw-r--r-- | crates/typst-library/src/compute/calc.rs (renamed from library/src/compute/calc.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/compute/construct.rs (renamed from library/src/compute/construct.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/compute/data.rs (renamed from library/src/compute/data.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/compute/foundations.rs (renamed from library/src/compute/foundations.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/compute/mod.rs (renamed from library/src/compute/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/align.rs (renamed from library/src/layout/align.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/columns.rs (renamed from library/src/layout/columns.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/container.rs (renamed from library/src/layout/container.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/enum.rs (renamed from library/src/layout/enum.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/flow.rs (renamed from library/src/layout/flow.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/fragment.rs (renamed from library/src/layout/fragment.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/grid.rs (renamed from library/src/layout/grid.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/hide.rs (renamed from library/src/layout/hide.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/list.rs (renamed from library/src/layout/list.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/measure.rs (renamed from library/src/layout/measure.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/mod.rs (renamed from library/src/layout/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/pad.rs (renamed from library/src/layout/pad.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/page.rs (renamed from library/src/layout/page.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/par.rs (renamed from library/src/layout/par.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/place.rs (renamed from library/src/layout/place.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/regions.rs (renamed from library/src/layout/regions.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/repeat.rs (renamed from library/src/layout/repeat.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/spacing.rs (renamed from library/src/layout/spacing.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/stack.rs (renamed from library/src/layout/stack.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/table.rs (renamed from library/src/layout/table.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/terms.rs (renamed from library/src/layout/terms.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/layout/transform.rs (renamed from library/src/layout/transform.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/lib.rs (renamed from library/src/lib.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/accent.rs (renamed from library/src/math/accent.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/align.rs (renamed from library/src/math/align.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/attach.rs (renamed from library/src/math/attach.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/cancel.rs (renamed from library/src/math/cancel.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/ctx.rs (renamed from library/src/math/ctx.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/delimited.rs (renamed from library/src/math/delimited.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/frac.rs (renamed from library/src/math/frac.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/fragment.rs (renamed from library/src/math/fragment.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/matrix.rs (renamed from library/src/math/matrix.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/mod.rs (renamed from library/src/math/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/op.rs (renamed from library/src/math/op.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/root.rs (renamed from library/src/math/root.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/row.rs (renamed from library/src/math/row.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/spacing.rs (renamed from library/src/math/spacing.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/stretch.rs (renamed from library/src/math/stretch.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/style.rs (renamed from library/src/math/style.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/math/underover.rs (renamed from library/src/math/underover.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/bibliography.rs (renamed from library/src/meta/bibliography.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/context.rs (renamed from library/src/meta/context.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/counter.rs (renamed from library/src/meta/counter.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/document.rs (renamed from library/src/meta/document.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/figure.rs (renamed from library/src/meta/figure.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/footnote.rs (renamed from library/src/meta/footnote.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/heading.rs (renamed from library/src/meta/heading.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/link.rs (renamed from library/src/meta/link.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/mod.rs (renamed from library/src/meta/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/numbering.rs (renamed from library/src/meta/numbering.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/outline.rs (renamed from library/src/meta/outline.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/query.rs (renamed from library/src/meta/query.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/reference.rs (renamed from library/src/meta/reference.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/meta/state.rs (renamed from library/src/meta/state.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/prelude.rs (renamed from library/src/prelude.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/shared/behave.rs (renamed from library/src/shared/behave.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/shared/ext.rs (renamed from library/src/shared/ext.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/shared/mod.rs (renamed from library/src/shared/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/symbols/emoji.rs (renamed from library/src/symbols/emoji.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/symbols/mod.rs (renamed from library/src/symbols/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/symbols/sym.rs (renamed from library/src/symbols/sym.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/deco.rs (renamed from library/src/text/deco.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/misc.rs (renamed from library/src/text/misc.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/mod.rs (renamed from library/src/text/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/quotes.rs (renamed from library/src/text/quotes.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/raw.rs (renamed from library/src/text/raw.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/shaping.rs (renamed from library/src/text/shaping.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/text/shift.rs (renamed from library/src/text/shift.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/image.rs (renamed from library/src/visualize/image.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/line.rs (renamed from library/src/visualize/line.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/mod.rs (renamed from library/src/visualize/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/path.rs (renamed from library/src/visualize/path.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/polygon.rs (renamed from library/src/visualize/polygon.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-library/src/visualize/shape.rs (renamed from library/src/visualize/shape.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/Cargo.toml (renamed from macros/Cargo.toml) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/src/castable.rs (renamed from macros/src/castable.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/src/element.rs (renamed from macros/src/element.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/src/func.rs (renamed from macros/src/func.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/src/lib.rs (renamed from macros/src/lib.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/src/symbols.rs (renamed from macros/src/symbols.rs) | 0 | ||||
| -rw-r--r-- | crates/typst-macros/src/util.rs (renamed from macros/src/util.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/Cargo.toml | 56 | ||||
| -rw-r--r-- | crates/typst/src/diag.rs (renamed from src/diag.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/doc.rs (renamed from src/doc.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/args.rs (renamed from src/eval/args.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/array.rs (renamed from src/eval/array.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/auto.rs (renamed from src/eval/auto.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/cast.rs (renamed from src/eval/cast.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/datetime.rs (renamed from src/eval/datetime.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/dict.rs (renamed from src/eval/dict.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/func.rs (renamed from src/eval/func.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/int.rs (renamed from src/eval/int.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/library.rs (renamed from src/eval/library.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/methods.rs (renamed from src/eval/methods.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/mod.rs (renamed from src/eval/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/module.rs (renamed from src/eval/module.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/none.rs (renamed from src/eval/none.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/ops.rs (renamed from src/eval/ops.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/scope.rs (renamed from src/eval/scope.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/str.rs (renamed from src/eval/str.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/symbol.rs (renamed from src/eval/symbol.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/eval/value.rs (renamed from src/eval/value.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/mod.rs (renamed from src/export/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/pdf/font.rs (renamed from src/export/pdf/font.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/pdf/image.rs (renamed from src/export/pdf/image.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/pdf/mod.rs (renamed from src/export/pdf/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/pdf/outline.rs (renamed from src/export/pdf/outline.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/pdf/page.rs (renamed from src/export/pdf/page.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/export/render.rs (renamed from src/export/render.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/file.rs (renamed from src/file.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/font/book.rs (renamed from src/font/book.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/font/mod.rs (renamed from src/font/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/font/variant.rs (renamed from src/font/variant.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/abs.rs (renamed from src/geom/abs.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/align.rs (renamed from src/geom/align.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/angle.rs (renamed from src/geom/angle.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/axes.rs (renamed from src/geom/axes.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/color.rs (renamed from src/geom/color.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/corners.rs (renamed from src/geom/corners.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/dir.rs (renamed from src/geom/dir.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/ellipse.rs (renamed from src/geom/ellipse.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/em.rs (renamed from src/geom/em.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/fr.rs (renamed from src/geom/fr.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/length.rs (renamed from src/geom/length.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/macros.rs (renamed from src/geom/macros.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/mod.rs (renamed from src/geom/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/paint.rs (renamed from src/geom/paint.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/path.rs (renamed from src/geom/path.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/point.rs (renamed from src/geom/point.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/ratio.rs (renamed from src/geom/ratio.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/rel.rs (renamed from src/geom/rel.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/rounded.rs (renamed from src/geom/rounded.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/scalar.rs (renamed from src/geom/scalar.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/shape.rs (renamed from src/geom/shape.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/sides.rs (renamed from src/geom/sides.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/size.rs (renamed from src/geom/size.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/smart.rs (renamed from src/geom/smart.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/stroke.rs (renamed from src/geom/stroke.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/geom/transform.rs (renamed from src/geom/transform.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/ide/analyze.rs (renamed from src/ide/analyze.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/ide/complete.rs (renamed from src/ide/complete.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/ide/highlight.rs (renamed from src/ide/highlight.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/ide/jump.rs (renamed from src/ide/jump.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/ide/mod.rs (renamed from src/ide/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/ide/tooltip.rs (renamed from src/ide/tooltip.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/image.rs (renamed from src/image.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/lib.rs (renamed from src/lib.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/content.rs (renamed from src/model/content.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/element.rs (renamed from src/model/element.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/introspect.rs (renamed from src/model/introspect.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/label.rs (renamed from src/model/label.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/mod.rs (renamed from src/model/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/realize.rs (renamed from src/model/realize.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/selector.rs (renamed from src/model/selector.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/model/styles.rs (renamed from src/model/styles.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/ast.rs (renamed from src/syntax/ast.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/kind.rs (renamed from src/syntax/kind.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/lexer.rs (renamed from src/syntax/lexer.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/mod.rs (renamed from src/syntax/mod.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/node.rs (renamed from src/syntax/node.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/parser.rs (renamed from src/syntax/parser.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/reparser.rs (renamed from src/syntax/reparser.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/source.rs (renamed from src/syntax/source.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/syntax/span.rs (renamed from src/syntax/span.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/util/bytes.rs (renamed from src/util/bytes.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/util/fat.rs (renamed from src/util/fat.rs) | 0 | ||||
| -rw-r--r-- | crates/typst/src/util/mod.rs (renamed from src/util/mod.rs) | 0 | ||||
| -rw-r--r-- | docs/changelog.md (renamed from docs/src/general/changelog.md) | 0 | ||||
| -rw-r--r-- | docs/community.md (renamed from docs/src/general/community.md) | 0 | ||||
| -rw-r--r-- | docs/dev/architecture.md (renamed from ARCHITECTURE.md) | 0 | ||||
| -rw-r--r-- | docs/guides/guide-for-latex-users.md (renamed from docs/src/guides/guide-for-latex-users.md) | 0 | ||||
| -rw-r--r-- | docs/guides/welcome.md (renamed from docs/src/guides/welcome.md) | 0 | ||||
| -rw-r--r-- | docs/overview.md (renamed from docs/src/general/overview.md) | 0 | ||||
| -rw-r--r-- | docs/reference/details.yml (renamed from docs/src/reference/details.yml) | 0 | ||||
| -rw-r--r-- | docs/reference/groups.yml (renamed from docs/src/reference/groups.yml) | 0 | ||||
| -rw-r--r-- | docs/reference/scripting.md (renamed from docs/src/reference/scripting.md) | 0 | ||||
| -rw-r--r-- | docs/reference/styling.md (renamed from docs/src/reference/styling.md) | 0 | ||||
| -rw-r--r-- | docs/reference/syntax.md (renamed from docs/src/reference/syntax.md) | 0 | ||||
| -rw-r--r-- | docs/reference/types.md (renamed from docs/src/reference/types.md) | 0 | ||||
| -rw-r--r-- | docs/reference/welcome.md (renamed from docs/src/reference/welcome.md) | 0 | ||||
| -rw-r--r-- | docs/tutorial/1-writing.md (renamed from docs/src/tutorial/1-writing.md) | 0 | ||||
| -rw-r--r-- | docs/tutorial/2-formatting.md (renamed from docs/src/tutorial/2-formatting.md) | 0 | ||||
| -rw-r--r-- | docs/tutorial/3-advanced.md (renamed from docs/src/tutorial/3-advanced.md) | 0 | ||||
| -rw-r--r-- | docs/tutorial/4-template.md (renamed from docs/src/tutorial/4-template.md) | 0 | ||||
| -rw-r--r-- | docs/tutorial/welcome.md (renamed from docs/src/tutorial/welcome.md) | 0 | ||||
| -rw-r--r-- | tests/Cargo.toml | 4 |
215 files changed, 97 insertions, 108 deletions
@@ -13,7 +13,6 @@ tarpaulin-report.html # Rust /target -bench/target **/*.rs.bk # Node diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 5848b863..dfa836d1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -13,7 +13,7 @@ land your contribution below. 2. Fork the Typst repository and start with your contribution. If you, at any point in this process, are unsure about how to do something in the Typst codebase, reach out to a maintainer or a more experienced contributor. Also - have a look at the [`ARCHITECTURE.md`][architecture] file. It explains how + have a look at the [`architecture.md`][architecture] file. It explains how the compiler works. 3. Create a pull request (PR) in the Typst repository, outlining your contribution, the technical rationale behind it, and, if it includes a new @@ -69,5 +69,5 @@ Typst! [issue]: https://github.com/typst/typst/issues [testing]: https://github.com/typst/typst/blob/main/tests/README.md [#contributors]: https://discord.com/channels/1054443721975922748/1088371867913572452 -[architecture]: https://github.com/typst/typst/blob/main/ARCHITECTURE.md +[architecture]: https://github.com/typst/typst/blob/main/docs/dev/architecture.md [changelog]: https://typst.app/docs/changelog/ @@ -425,9 +425,9 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.14" +version = "0.9.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46bd5f3f85273295a9d14aedfb86f6aadbff6d8f5295c4a9edb08e819dcf5695" +checksum = "ae211234986c545741a7dc064309f67ee1e5ad243d0e48335adc0484d960bcc7" dependencies = [ "autocfg", "cfg-if", @@ -753,15 +753,6 @@ dependencies = [ [[package]] name = "hermit-abi" -version = "0.2.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee512640fe35acbfb4bb779db6f0d80704c2cacfa2e39b601ef3e3f47d1ae4c7" -dependencies = [ - "libc", -] - -[[package]] -name = "hermit-abi" version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fed44880c466736ef9a5c5b5facefb5ed0785676d0c02d612db14e54f0d84286" @@ -1245,9 +1236,9 @@ dependencies = [ [[package]] name = "memoffset" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d61c719bcfbcf5d62b3a09efa6088de8c54bc0bfcd3ea7ae39fcc186108b8de1" +checksum = "5a634b1c61a95585bd15607c6ab0c4e5b226e695ff2800ba0cdccddf208c406c" dependencies = [ "autocfg", ] @@ -1356,11 +1347,11 @@ dependencies = [ [[package]] name = "num_cpus" -version = "1.15.0" +version = "1.16.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0fac9e2da13b5eb447a6ce3d392f23a29d8694bff781bf03a16cd9ac8697593b" +checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43" dependencies = [ - "hermit-abi 0.2.6", + "hermit-abi 0.3.1", "libc", ] @@ -1394,9 +1385,9 @@ checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d" [[package]] name = "os_str_bytes" -version = "6.5.0" +version = "6.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ceedf44fb00f2d1984b0bc98102627ce622e083e49a5bacdb3e514fa4238e267" +checksum = "4d5d9eb14b174ee9aa2ef96dc2b94637a2d4b6e7cb873c7e171f0c20c6cf3eac" [[package]] name = "overload" @@ -3218,11 +3209,10 @@ dependencies = [ [[package]] name = "zopfli" -version = "0.7.2" +version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5b2bed49d3f0af28729a2338ee8c3a48eba2133a78ebc560779be161ebaaad8" +checksum = "4e0650ae6a051326d798eb099b632f1afb0d323d25ee4ec82ffb0779512084d5" dependencies = [ - "byteorder", "crc32fast", "log", "simd-adler32", @@ -1,6 +1,6 @@ [workspace] -members = ["cli", "docs", "library", "macros", "tests"] -default-members = ["cli"] +members = ["crates/*", "tests"] +default-members = ["crates/typst-cli"] [workspace.package] version = "0.6.0" @@ -12,63 +12,6 @@ repository = "https://github.com/typst/typst" readme = "README.md" license = "Apache-2.0" -[package] -name = "typst" -description = "A new markup-based typesetting system that is powerful and easy to learn." -categories = ["compilers", "science"] -keywords = ["markup", "typesetting"] -version.workspace = true -rust-version.workspace = true -authors.workspace = true -edition.workspace = true -homepage.workspace = true -repository.workspace = true -license.workspace = true - -[lib] -doctest = false -bench = false - -[dependencies] -typst-macros = { path = "macros" } -bitflags = { version = "2", features = ["serde"] } -bytemuck = "1" -comemo = "0.3" -ecow = { version = "0.1.1", features = ["serde"] } -flate2 = "1" -fontdb = "0.13" -if_chain = "1" -image = { version = "0.24", default-features = false, features = ["png", "jpeg", "gif"] } -indexmap = "1.9.3" -log = "0.4" -miniz_oxide = "0.7" -once_cell = "1" -pdf-writer = "0.7.1" -pixglyph = "0.1" -regex = "1" -resvg = { version = "0.32", default-features = false } -roxmltree = "0.18" -rustybuzz = "0.7" -serde = { version = "1", features = ["derive"] } -siphasher = "0.3" -subsetter = "0.1.1" -svg2pdf = { git = "https://github.com/typst/svg2pdf" } -tiny-skia = "0.9.0" -toml = { version = "0.7.3", default-features = false, features = ["parse"] } -tracing = "0.1.37" -ttf-parser = "0.18.1" -unicode-general-category = "0.6" -unicode-ident = "1.0" -unicode-math-class = "0.1" -unicode-segmentation = "1" -unscanny = "0.1" -usvg = { version = "0.32", default-features = false, features = ["text"] } -xmp-writer = "0.1" -time = { version = "0.3.20", features = ["std", "formatting"] } - -[target.'cfg(not(target_arch = "wasm32"))'.dependencies] -stacker = "0.1.15" - [profile.dev.package."*"] opt-level = 2 @@ -3,8 +3,8 @@ Licenses for third party components used by this project can be found below. ================================================================================ The MIT License applies to: -* The default color set defined in `src/geom/color.rs` which is adapted from - the colors.css project +* The default color set defined in `crates/typst/src/geom/color.rs` which is + adapted from the colors.css project (https://clrs.cc/) The MIT License (MIT) @@ -29,8 +29,9 @@ THE SOFTWARE. ================================================================================ ================================================================================ -Alpha multiplication and source-over blending in `src/export/render.rs` are -ported from Skia code which can be found here: +Alpha multiplication and source-over blending in +`crates/typst/src/export/render.rs` are ported from Skia code which can be found +here: https://skia.googlesource.com/skia/+/refs/heads/main/include/core/SkColorPriv.h Copyright (c) 2011 Google Inc. All rights reserved. @@ -63,8 +64,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ================================================================================ ================================================================================ -Syntaxes in `library/assets/syntect.bin` are generated from syntax definitions -which can be found here: +Syntaxes in `crates/typst-library/assets/syntect.bin` are generated from syntax +definitions which can be found here: https://github.com/sharkdp/bat/tree/master/assets/syntaxes The syntax definitions are used under their respective licenses. @@ -220,7 +220,7 @@ instant preview. To achieve these goals, we follow three core design principles: [scripting]: https://typst.app/docs/reference/scripting/ [rust]: https://rustup.rs/ [releases]: https://github.com/typst/typst/releases/ -[architecture]: https://github.com/typst/typst/blob/main/ARCHITECTURE.md +[architecture]: https://github.com/typst/typst/blob/main/docs/dev/architecture.md [contributing]: https://github.com/typst/typst/blob/main/CONTRIBUTING.md [packages]: https://github.com/typst/packages/ [`comemo`]: https://github.com/typst/comemo/ diff --git a/cli/Cargo.toml b/crates/typst-cli/Cargo.toml index e8058df0..e77cbc2a 100644 --- a/cli/Cargo.toml +++ b/crates/typst-cli/Cargo.toml @@ -20,8 +20,8 @@ bench = false doc = false [dependencies] -typst = { path = ".." } -typst-library = { path = "../library" } +typst = { path = "../typst" } +typst-library = { path = "../typst-library" } chrono = { version = "0.4.24", default-features = false, features = ["clock", "std"] } clap = { version = "4.2.4", features = ["derive", "env"] } codespan-reporting = "0.11" diff --git a/cli/build.rs b/crates/typst-cli/build.rs index 86325e1d..86325e1d 100644 --- a/cli/build.rs +++ b/crates/typst-cli/build.rs diff --git a/cli/src/args.rs b/crates/typst-cli/src/args.rs index 7fdb041b..7fdb041b 100644 --- a/cli/src/args.rs +++ b/crates/typst-cli/src/args.rs diff --git a/cli/src/compile.rs b/crates/typst-cli/src/compile.rs index 3250202b..3250202b 100644 --- a/cli/src/compile.rs +++ b/crates/typst-cli/src/compile.rs diff --git a/cli/src/fonts.rs b/crates/typst-cli/src/fonts.rs index 75835741..d8209fee 100644 --- a/cli/src/fonts.rs +++ b/crates/typst-cli/src/fonts.rs @@ -95,7 +95,7 @@ impl FontSearcher { macro_rules! add { ($filename:literal) => { - process(include_bytes!(concat!("../../assets/fonts/", $filename,))); + process(include_bytes!(concat!("../../../assets/fonts/", $filename))); }; } diff --git a/cli/src/main.rs b/crates/typst-cli/src/main.rs index 425d05fd..425d05fd 100644 --- a/cli/src/main.rs +++ b/crates/typst-cli/src/main.rs diff --git a/cli/src/package.rs b/crates/typst-cli/src/package.rs index 6853796b..6853796b 100644 --- a/cli/src/package.rs +++ b/crates/typst-cli/src/package.rs diff --git a/cli/src/tracing.rs b/crates/typst-cli/src/tracing.rs index 80c2ff65..80c2ff65 100644 --- a/cli/src/tracing.rs +++ b/crates/typst-cli/src/tracing.rs diff --git a/cli/src/watch.rs b/crates/typst-cli/src/watch.rs index 2ad73f85..2ad73f85 100644 --- a/cli/src/watch.rs +++ b/crates/typst-cli/src/watch.rs diff --git a/cli/src/world.rs b/crates/typst-cli/src/world.rs index f09a3f6c..f09a3f6c 100644 --- a/cli/src/world.rs +++ b/crates/typst-cli/src/world.rs diff --git a/docs/Cargo.toml b/crates/typst-docs/Cargo.toml index b6015d01..47088815 100644 --- a/docs/Cargo.toml +++ b/crates/typst-docs/Cargo.toml @@ -11,8 +11,8 @@ doctest = false bench = false [dependencies] -typst = { path = ".." } -typst-library = { path = "../library" } +typst = { path = "../typst" } +typst-library = { path = "../typst-library" } comemo = "0.3" heck = "0.4" include_dir = "0.7" diff --git a/docs/src/contribs.rs b/crates/typst-docs/src/contribs.rs index 901b5f69..901b5f69 100644 --- a/docs/src/contribs.rs +++ b/crates/typst-docs/src/contribs.rs diff --git a/docs/src/html.rs b/crates/typst-docs/src/html.rs index 0d40f46b..0d40f46b 100644 --- a/docs/src/html.rs +++ b/crates/typst-docs/src/html.rs diff --git a/docs/src/lib.rs b/crates/typst-docs/src/lib.rs index afceff22..d7f816d2 100644 --- a/docs/src/lib.rs +++ b/crates/typst-docs/src/lib.rs @@ -23,13 +23,13 @@ use typst::geom::{Abs, Smart}; use typst_library::layout::{Margin, PageElem}; use unscanny::Scanner; -static SRC: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/src"); -static FILES: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../assets/files"); +static DOCS: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../docs"); +static FILES: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../assets/files"); static DETAILS: Lazy<yaml::Mapping> = Lazy::new(|| yaml("reference/details.yml")); static GROUPS: Lazy<Vec<GroupData>> = Lazy::new(|| yaml("reference/groups.yml")); static FONTS: Lazy<(Prehashed<FontBook>, Vec<Font>)> = Lazy::new(|| { - static DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../assets/fonts"); + static DIR: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../assets/fonts"); let fonts: Vec<_> = DIR .files() .flat_map(|file| Font::iter(file.contents().into())) @@ -53,13 +53,13 @@ static LIBRARY: Lazy<Prehashed<Library>> = Lazy::new(|| { /// Build documentation pages. pub fn provide(resolver: &dyn Resolver) -> Vec<PageModel> { vec![ - markdown_page(resolver, "/docs/", "general/overview.md").with_route("/docs/"), + markdown_page(resolver, "/docs/", "overview.md").with_route("/docs/"), tutorial_pages(resolver), reference_pages(resolver), guides_pages(resolver), packages_page(resolver), - markdown_page(resolver, "/docs/", "general/changelog.md"), - markdown_page(resolver, "/docs/", "general/community.md"), + markdown_page(resolver, "/docs/", "changelog.md"), + markdown_page(resolver, "/docs/", "community.md"), ] } @@ -125,7 +125,7 @@ pub enum BodyModel { /// Build the tutorial. fn tutorial_pages(resolver: &dyn Resolver) -> PageModel { let mut page = markdown_page(resolver, "/docs/", "tutorial/welcome.md"); - page.children = SRC + page.children = DOCS .get_dir("tutorial") .unwrap() .files() @@ -187,7 +187,7 @@ fn markdown_page( path: impl AsRef<Path>, ) -> PageModel { assert!(parent.starts_with('/') && parent.ends_with('/')); - let md = SRC.get_file(path).unwrap().contents_utf8().unwrap(); + let md = DOCS.get_file(path).unwrap().contents_utf8().unwrap(); let html = Html::markdown(resolver, md); let title = html.title().expect("chapter lacks a title").to_string(); PageModel { @@ -652,7 +652,7 @@ fn types_page(resolver: &dyn Resolver, parent: &str) -> PageModel { /// Produce the types' models. fn type_models(resolver: &dyn Resolver) -> Vec<TypeModel> { - let file = SRC.get_file("reference/types.md").unwrap(); + let file = DOCS.get_file("reference/types.md").unwrap(); let text = file.contents_utf8().unwrap(); let mut s = unscanny::Scanner::new(text); @@ -906,7 +906,7 @@ fn module<'a>(parent: &'a Module, name: &str) -> Result<&'a Module, String> { /// Load YAML from a path. #[track_caller] fn yaml<T: DeserializeOwned>(path: &str) -> T { - let file = SRC.get_file(path).unwrap(); + let file = DOCS.get_file(path).unwrap(); yaml::from_slice(file.contents()).unwrap() } diff --git a/library/Cargo.toml b/crates/typst-library/Cargo.toml index 85bf4a2c..23c37d75 100644 --- a/library/Cargo.toml +++ b/crates/typst-library/Cargo.toml @@ -17,7 +17,7 @@ doctest = false bench = false [dependencies] -typst = { path = ".." } +typst = { path = "../typst" } az = "1.2" chinese-number = { version = "0.7.2", default-features = false, features = ["number-to-chinese"] } comemo = "0.3" diff --git a/library/assets/cj_linebreak_data.postcard b/crates/typst-library/assets/cj_linebreak_data.postcard Binary files differindex 910dd167..910dd167 100644 --- a/library/assets/cj_linebreak_data.postcard +++ b/crates/typst-library/assets/cj_linebreak_data.postcard diff --git a/library/assets/icudata.postcard b/crates/typst-library/assets/icudata.postcard Binary files differindex e910bf8e..e910bf8e 100644 --- a/library/assets/icudata.postcard +++ b/crates/typst-library/assets/icudata.postcard diff --git a/library/assets/syntect.bin b/crates/typst-library/assets/syntect.bin Binary files differindex 043602a4..043602a4 100644 --- a/library/assets/syntect.bin +++ b/crates/typst-library/assets/syntect.bin diff --git a/library/src/compute/calc.rs b/crates/typst-library/src/compute/calc.rs index 81715007..81715007 100644 --- a/library/src/compute/calc.rs +++ b/crates/typst-library/src/compute/calc.rs diff --git a/library/src/compute/construct.rs b/crates/typst-library/src/compute/construct.rs index 956212ee..956212ee 100644 --- a/library/src/compute/construct.rs +++ b/crates/typst-library/src/compute/construct.rs diff --git a/library/src/compute/data.rs b/crates/typst-library/src/compute/data.rs index 6e3a298e..6e3a298e 100644 --- a/library/src/compute/data.rs +++ b/crates/typst-library/src/compute/data.rs diff --git a/library/src/compute/foundations.rs b/crates/typst-library/src/compute/foundations.rs index f83d71a0..f83d71a0 100644 --- a/library/src/compute/foundations.rs +++ b/crates/typst-library/src/compute/foundations.rs diff --git a/library/src/compute/mod.rs b/crates/typst-library/src/compute/mod.rs index e9e4870c..e9e4870c 100644 --- a/library/src/compute/mod.rs +++ b/crates/typst-library/src/compute/mod.rs diff --git a/library/src/layout/align.rs b/crates/typst-library/src/layout/align.rs index bbfe9f7e..bbfe9f7e 100644 --- a/library/src/layout/align.rs +++ b/crates/typst-library/src/layout/align.rs diff --git a/library/src/layout/columns.rs b/crates/typst-library/src/layout/columns.rs index d2138491..d2138491 100644 --- a/library/src/layout/columns.rs +++ b/crates/typst-library/src/layout/columns.rs diff --git a/library/src/layout/container.rs b/crates/typst-library/src/layout/container.rs index c79669d0..c79669d0 100644 --- a/library/src/layout/container.rs +++ b/crates/typst-library/src/layout/container.rs diff --git a/library/src/layout/enum.rs b/crates/typst-library/src/layout/enum.rs index d66477fc..d66477fc 100644 --- a/library/src/layout/enum.rs +++ b/crates/typst-library/src/layout/enum.rs diff --git a/library/src/layout/flow.rs b/crates/typst-library/src/layout/flow.rs index accd092a..accd092a 100644 --- a/library/src/layout/flow.rs +++ b/crates/typst-library/src/layout/flow.rs diff --git a/library/src/layout/fragment.rs b/crates/typst-library/src/layout/fragment.rs index 3550df2a..3550df2a 100644 --- a/library/src/layout/fragment.rs +++ b/crates/typst-library/src/layout/fragment.rs diff --git a/library/src/layout/grid.rs b/crates/typst-library/src/layout/grid.rs index 4f5175e9..4f5175e9 100644 --- a/library/src/layout/grid.rs +++ b/crates/typst-library/src/layout/grid.rs diff --git a/library/src/layout/hide.rs b/crates/typst-library/src/layout/hide.rs index c6e83e0c..c6e83e0c 100644 --- a/library/src/layout/hide.rs +++ b/crates/typst-library/src/layout/hide.rs diff --git a/library/src/layout/list.rs b/crates/typst-library/src/layout/list.rs index e39ec3f5..e39ec3f5 100644 --- a/library/src/layout/list.rs +++ b/crates/typst-library/src/layout/list.rs diff --git a/library/src/layout/measure.rs b/crates/typst-library/src/layout/measure.rs index eb8e509e..eb8e509e 100644 --- a/library/src/layout/measure.rs +++ b/crates/typst-library/src/layout/measure.rs diff --git a/library/src/layout/mod.rs b/crates/typst-library/src/layout/mod.rs index 41490eb8..41490eb8 100644 --- a/library/src/layout/mod.rs +++ b/crates/typst-library/src/layout/mod.rs diff --git a/library/src/layout/pad.rs b/crates/typst-library/src/layout/pad.rs index a3d5646b..a3d5646b 100644 --- a/library/src/layout/pad.rs +++ b/crates/typst-library/src/layout/pad.rs diff --git a/library/src/layout/page.rs b/crates/typst-library/src/layout/page.rs index 3b81f92c..3b81f92c 100644 --- a/library/src/layout/page.rs +++ b/crates/typst-library/src/layout/page.rs diff --git a/library/src/layout/par.rs b/crates/typst-library/src/layout/par.rs index 6b914e80..6b914e80 100644 --- a/library/src/layout/par.rs +++ b/crates/typst-library/src/layout/par.rs diff --git a/library/src/layout/place.rs b/crates/typst-library/src/layout/place.rs index 6602948c..6602948c 100644 --- a/library/src/layout/place.rs +++ b/crates/typst-library/src/layout/place.rs diff --git a/library/src/layout/regions.rs b/crates/typst-library/src/layout/regions.rs index 6dd549b0..6dd549b0 100644 --- a/library/src/layout/regions.rs +++ b/crates/typst-library/src/layout/regions.rs diff --git a/library/src/layout/repeat.rs b/crates/typst-library/src/layout/repeat.rs index 646eb991..646eb991 100644 --- a/library/src/layout/repeat.rs +++ b/crates/typst-library/src/layout/repeat.rs diff --git a/library/src/layout/spacing.rs b/crates/typst-library/src/layout/spacing.rs index e7dc24fb..e7dc24fb 100644 --- a/library/src/layout/spacing.rs +++ b/crates/typst-library/src/layout/spacing.rs diff --git a/library/src/layout/stack.rs b/crates/typst-library/src/layout/stack.rs index 97305ddf..97305ddf 100644 --- a/library/src/layout/stack.rs +++ b/crates/typst-library/src/layout/stack.rs diff --git a/library/src/layout/table.rs b/crates/typst-library/src/layout/table.rs index c2faedba..c2faedba 100644 --- a/library/src/layout/table.rs +++ b/crates/typst-library/src/layout/table.rs diff --git a/library/src/layout/terms.rs b/crates/typst-library/src/layout/terms.rs index d693f100..d693f100 100644 --- a/library/src/layout/terms.rs +++ b/crates/typst-library/src/layout/terms.rs diff --git a/library/src/layout/transform.rs b/crates/typst-library/src/layout/transform.rs index a57a5edc..a57a5edc 100644 --- a/library/src/layout/transform.rs +++ b/crates/typst-library/src/layout/transform.rs diff --git a/library/src/lib.rs b/crates/typst-library/src/lib.rs index 0bd88501..0bd88501 100644 --- a/library/src/lib.rs +++ b/crates/typst-library/src/lib.rs diff --git a/library/src/math/accent.rs b/crates/typst-library/src/math/accent.rs index d1bee198..d1bee198 100644 --- a/library/src/math/accent.rs +++ b/crates/typst-library/src/math/accent.rs diff --git a/library/src/math/align.rs b/crates/typst-library/src/math/align.rs index aee89a89..aee89a89 100644 --- a/library/src/math/align.rs +++ b/crates/typst-library/src/math/align.rs diff --git a/library/src/math/attach.rs b/crates/typst-library/src/math/attach.rs index fedeb908..fedeb908 100644 --- a/library/src/math/attach.rs +++ b/crates/typst-library/src/math/attach.rs diff --git a/library/src/math/cancel.rs b/crates/typst-library/src/math/cancel.rs index f576a727..f576a727 100644 --- a/library/src/math/cancel.rs +++ b/crates/typst-library/src/math/cancel.rs diff --git a/library/src/math/ctx.rs b/crates/typst-library/src/math/ctx.rs index a1dc6cf4..a1dc6cf4 100644 --- a/library/src/math/ctx.rs +++ b/crates/typst-library/src/math/ctx.rs diff --git a/library/src/math/delimited.rs b/crates/typst-library/src/math/delimited.rs index 99cd6c33..99cd6c33 100644 --- a/library/src/math/delimited.rs +++ b/crates/typst-library/src/math/delimited.rs diff --git a/library/src/math/frac.rs b/crates/typst-library/src/math/frac.rs index 0e1f78cc..0e1f78cc 100644 --- a/library/src/math/frac.rs +++ b/crates/typst-library/src/math/frac.rs diff --git a/library/src/math/fragment.rs b/crates/typst-library/src/math/fragment.rs index 139ce07b..139ce07b 100644 --- a/library/src/math/fragment.rs +++ b/crates/typst-library/src/math/fragment.rs diff --git a/library/src/math/matrix.rs b/crates/typst-library/src/math/matrix.rs index aaccc332..aaccc332 100644 --- a/library/src/math/matrix.rs +++ b/crates/typst-library/src/math/matrix.rs diff --git a/library/src/math/mod.rs b/crates/typst-library/src/math/mod.rs index 0429265f..0429265f 100644 --- a/library/src/math/mod.rs +++ b/crates/typst-library/src/math/mod.rs diff --git a/library/src/math/op.rs b/crates/typst-library/src/math/op.rs index 8ad74c49..8ad74c49 100644 --- a/library/src/math/op.rs +++ b/crates/typst-library/src/math/op.rs diff --git a/library/src/math/root.rs b/crates/typst-library/src/math/root.rs index d1c5f46a..d1c5f46a 100644 --- a/library/src/math/root.rs +++ b/crates/typst-library/src/math/root.rs diff --git a/library/src/math/row.rs b/crates/typst-library/src/math/row.rs index 687f82b8..687f82b8 100644 --- a/library/src/math/row.rs +++ b/crates/typst-library/src/math/row.rs diff --git a/library/src/math/spacing.rs b/crates/typst-library/src/math/spacing.rs index 848aca78..848aca78 100644 --- a/library/src/math/spacing.rs +++ b/crates/typst-library/src/math/spacing.rs diff --git a/library/src/math/stretch.rs b/crates/typst-library/src/math/stretch.rs index 910f7a81..910f7a81 100644 --- a/library/src/math/stretch.rs +++ b/crates/typst-library/src/math/stretch.rs diff --git a/library/src/math/style.rs b/crates/typst-library/src/math/style.rs index 235770db..235770db 100644 --- a/library/src/math/style.rs +++ b/crates/typst-library/src/math/style.rs diff --git a/library/src/math/underover.rs b/crates/typst-library/src/math/underover.rs index 796c9ebc..796c9ebc 100644 --- a/library/src/math/underover.rs +++ b/crates/typst-library/src/math/underover.rs diff --git a/library/src/meta/bibliography.rs b/crates/typst-library/src/meta/bibliography.rs index 0531997d..0531997d 100644 --- a/library/src/meta/bibliography.rs +++ b/crates/typst-library/src/meta/bibliography.rs diff --git a/library/src/meta/context.rs b/crates/typst-library/src/meta/context.rs index a42c6980..a42c6980 100644 --- a/library/src/meta/context.rs +++ b/crates/typst-library/src/meta/context.rs diff --git a/library/src/meta/counter.rs b/crates/typst-library/src/meta/counter.rs index 9a223b32..9a223b32 100644 --- a/library/src/meta/counter.rs +++ b/crates/typst-library/src/meta/counter.rs diff --git a/library/src/meta/document.rs b/crates/typst-library/src/meta/document.rs index db036e0a..db036e0a 100644 --- a/library/src/meta/document.rs +++ b/crates/typst-library/src/meta/document.rs diff --git a/library/src/meta/figure.rs b/crates/typst-library/src/meta/figure.rs index 0d218770..0d218770 100644 --- a/library/src/meta/figure.rs +++ b/crates/typst-library/src/meta/figure.rs diff --git a/library/src/meta/footnote.rs b/crates/typst-library/src/meta/footnote.rs index 31ec9fe9..31ec9fe9 100644 --- a/library/src/meta/footnote.rs +++ b/crates/typst-library/src/meta/footnote.rs diff --git a/library/src/meta/heading.rs b/crates/typst-library/src/meta/heading.rs index d70bc0a9..d70bc0a9 100644 --- a/library/src/meta/heading.rs +++ b/crates/typst-library/src/meta/heading.rs diff --git a/library/src/meta/link.rs b/crates/typst-library/src/meta/link.rs index 2a53b84f..2a53b84f 100644 --- a/library/src/meta/link.rs +++ b/crates/typst-library/src/meta/link.rs diff --git a/library/src/meta/mod.rs b/crates/typst-library/src/meta/mod.rs index dcac6379..dcac6379 100644 --- a/library/src/meta/mod.rs +++ b/crates/typst-library/src/meta/mod.rs diff --git a/library/src/meta/numbering.rs b/crates/typst-library/src/meta/numbering.rs index 8698f7b9..8698f7b9 100644 --- a/library/src/meta/numbering.rs +++ b/crates/typst-library/src/meta/numbering.rs diff --git a/library/src/meta/outline.rs b/crates/typst-library/src/meta/outline.rs index ba858a69..ba858a69 100644 --- a/library/src/meta/outline.rs +++ b/crates/typst-library/src/meta/outline.rs diff --git a/library/src/meta/query.rs b/crates/typst-library/src/meta/query.rs index 826b812e..826b812e 100644 --- a/library/src/meta/query.rs +++ b/crates/typst-library/src/meta/query.rs diff --git a/library/src/meta/reference.rs b/crates/typst-library/src/meta/reference.rs index 5bd04431..5bd04431 100644 --- a/library/src/meta/reference.rs +++ b/crates/typst-library/src/meta/reference.rs diff --git a/library/src/meta/state.rs b/crates/typst-library/src/meta/state.rs index aee53a29..aee53a29 100644 --- a/library/src/meta/state.rs +++ b/crates/typst-library/src/meta/state.rs diff --git a/library/src/prelude.rs b/crates/typst-library/src/prelude.rs index c720e770..c720e770 100644 --- a/library/src/prelude.rs +++ b/crates/typst-library/src/prelude.rs diff --git a/library/src/shared/behave.rs b/crates/typst-library/src/shared/behave.rs index 6a1aa127..6a1aa127 100644 --- a/library/src/shared/behave.rs +++ b/crates/typst-library/src/shared/behave.rs diff --git a/library/src/shared/ext.rs b/crates/typst-library/src/shared/ext.rs index d7c80a30..d7c80a30 100644 --- a/library/src/shared/ext.rs +++ b/crates/typst-library/src/shared/ext.rs diff --git a/library/src/shared/mod.rs b/crates/typst-library/src/shared/mod.rs index f54241cf..f54241cf 100644 --- a/library/src/shared/mod.rs +++ b/crates/typst-library/src/shared/mod.rs diff --git a/library/src/symbols/emoji.rs b/crates/typst-library/src/symbols/emoji.rs index 44bc3e14..44bc3e14 100644 --- a/library/src/symbols/emoji.rs +++ b/crates/typst-library/src/symbols/emoji.rs diff --git a/library/src/symbols/mod.rs b/crates/typst-library/src/symbols/mod.rs index 5036aa11..5036aa11 100644 --- a/library/src/symbols/mod.rs +++ b/crates/typst-library/src/symbols/mod.rs diff --git a/library/src/symbols/sym.rs b/crates/typst-library/src/symbols/sym.rs index 8b1b0b39..8b1b0b39 100644 --- a/library/src/symbols/sym.rs +++ b/crates/typst-library/src/symbols/sym.rs diff --git a/library/src/text/deco.rs b/crates/typst-library/src/text/deco.rs index 9ec4ca32..9ec4ca32 100644 --- a/library/src/text/deco.rs +++ b/crates/typst-library/src/text/deco.rs diff --git a/library/src/text/misc.rs b/crates/typst-library/src/text/misc.rs index 811b027e..811b027e 100644 --- a/library/src/text/misc.rs +++ b/crates/typst-library/src/text/misc.rs diff --git a/library/src/text/mod.rs b/crates/typst-library/src/text/mod.rs index ff8cbad8..ff8cbad8 100644 --- a/library/src/text/mod.rs +++ b/crates/typst-library/src/text/mod.rs diff --git a/library/src/text/quotes.rs b/crates/typst-library/src/text/quotes.rs index d0798064..d0798064 100644 --- a/library/src/text/quotes.rs +++ b/crates/typst-library/src/text/quotes.rs diff --git a/library/src/text/raw.rs b/crates/typst-library/src/text/raw.rs index 24f39bb6..24f39bb6 100644 --- a/library/src/text/raw.rs +++ b/crates/typst-library/src/text/raw.rs diff --git a/library/src/text/shaping.rs b/crates/typst-library/src/text/shaping.rs index ec8812fe..ec8812fe 100644 --- a/library/src/text/shaping.rs +++ b/crates/typst-library/src/text/shaping.rs diff --git a/library/src/text/shift.rs b/crates/typst-library/src/text/shift.rs index 65e309e1..65e309e1 100644 --- a/library/src/text/shift.rs +++ b/crates/typst-library/src/text/shift.rs diff --git a/library/src/visualize/image.rs b/crates/typst-library/src/visualize/image.rs index b169cc4d..b169cc4d 100644 --- a/library/src/visualize/image.rs +++ b/crates/typst-library/src/visualize/image.rs diff --git a/library/src/visualize/line.rs b/crates/typst-library/src/visualize/line.rs index 62a381a9..62a381a9 100644 --- a/library/src/visualize/line.rs +++ b/crates/typst-library/src/visualize/line.rs diff --git a/library/src/visualize/mod.rs b/crates/typst-library/src/visualize/mod.rs index ea873f44..ea873f44 100644 --- a/library/src/visualize/mod.rs +++ b/crates/typst-library/src/visualize/mod.rs diff --git a/library/src/visualize/path.rs b/crates/typst-library/src/visualize/path.rs index d78abce1..d78abce1 100644 --- a/library/src/visualize/path.rs +++ b/crates/typst-library/src/visualize/path.rs diff --git a/library/src/visualize/polygon.rs b/crates/typst-library/src/visualize/polygon.rs index d2d3132a..d2d3132a 100644 --- a/library/src/visualize/polygon.rs +++ b/crates/typst-library/src/visualize/polygon.rs diff --git a/library/src/visualize/shape.rs b/crates/typst-library/src/visualize/shape.rs index 6129b70b..6129b70b 100644 --- a/library/src/visualize/shape.rs +++ b/crates/typst-library/src/visualize/shape.rs diff --git a/macros/Cargo.toml b/crates/typst-macros/Cargo.toml index 15f2b2bd..15f2b2bd 100644 --- a/macros/Cargo.toml +++ b/crates/typst-macros/Cargo.toml diff --git a/macros/src/castable.rs b/crates/typst-macros/src/castable.rs index 05c1b4d1..05c1b4d1 100644 --- a/macros/src/castable.rs +++ b/crates/typst-macros/src/castable.rs diff --git a/macros/src/element.rs b/crates/typst-macros/src/element.rs index 6ce91fcb..6ce91fcb 100644 --- a/macros/src/element.rs +++ b/crates/typst-macros/src/element.rs diff --git a/macros/src/func.rs b/crates/typst-macros/src/func.rs index 4a68e846..4a68e846 100644 --- a/macros/src/func.rs +++ b/crates/typst-macros/src/func.rs diff --git a/macros/src/lib.rs b/crates/typst-macros/src/lib.rs index 49840ef2..49840ef2 100644 --- a/macros/src/lib.rs +++ b/crates/typst-macros/src/lib.rs diff --git a/macros/src/symbols.rs b/crates/typst-macros/src/symbols.rs index cdb7f5d7..cdb7f5d7 100644 --- a/macros/src/symbols.rs +++ b/crates/typst-macros/src/symbols.rs diff --git a/macros/src/util.rs b/crates/typst-macros/src/util.rs index 389fed06..389fed06 100644 --- a/macros/src/util.rs +++ b/crates/typst-macros/src/util.rs diff --git a/crates/typst/Cargo.toml b/crates/typst/Cargo.toml new file mode 100644 index 00000000..c9f3bb02 --- /dev/null +++ b/crates/typst/Cargo.toml @@ -0,0 +1,56 @@ +[package] +name = "typst" +description = "A new markup-based typesetting system that is powerful and easy to learn." +categories = ["compilers", "science"] +keywords = ["markup", "typesetting"] +version.workspace = true +rust-version.workspace = true +authors.workspace = true +edition.workspace = true +homepage.workspace = true +repository.workspace = true +license.workspace = true + +[lib] +doctest = false +bench = false + +[dependencies] +typst-macros = { path = "../typst-macros" } +bitflags = { version = "2", features = ["serde"] } +bytemuck = "1" +comemo = "0.3" +ecow = { version = "0.1.1", features = ["serde"] } +flate2 = "1" +fontdb = "0.13" +if_chain = "1" +image = { version = "0.24", default-features = false, features = ["png", "jpeg", "gif"] } +indexmap = "1.9.3" +log = "0.4" +miniz_oxide = "0.7" +once_cell = "1" +pdf-writer = "0.7.1" +pixglyph = "0.1" +regex = "1" +resvg = { version = "0.32", default-features = false } +roxmltree = "0.18" +rustybuzz = "0.7" +serde = { version = "1", features = ["derive"] } +siphasher = "0.3" +subsetter = "0.1.1" +svg2pdf = { git = "https://github.com/typst/svg2pdf" } +tiny-skia = "0.9.0" +toml = { version = "0.7.3", default-features = false, features = ["parse"] } +tracing = "0.1.37" +ttf-parser = "0.18.1" +unicode-general-category = "0.6" +unicode-ident = "1.0" +unicode-math-class = "0.1" +unicode-segmentation = "1" +unscanny = "0.1" +usvg = { version = "0.32", default-features = false, features = ["text"] } +xmp-writer = "0.1" +time = { version = "0.3.20", features = ["std", "formatting"] } + +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +stacker = "0.1.15" diff --git a/src/diag.rs b/crates/typst/src/diag.rs index b5995be4..b5995be4 100644 --- a/src/diag.rs +++ b/crates/typst/src/diag.rs diff --git a/src/doc.rs b/crates/typst/src/doc.rs index de16cece..de16cece 100644 --- a/src/doc.rs +++ b/crates/typst/src/doc.rs diff --git a/src/eval/args.rs b/crates/typst/src/eval/args.rs index da29eeaf..da29eeaf 100644 --- a/src/eval/args.rs +++ b/crates/typst/src/eval/args.rs diff --git a/src/eval/array.rs b/crates/typst/src/eval/array.rs index a7a1387b..a7a1387b 100644 --- a/src/eval/array.rs +++ b/crates/typst/src/eval/array.rs diff --git a/src/eval/auto.rs b/crates/typst/src/eval/auto.rs index e73b3f33..e73b3f33 100644 --- a/src/eval/auto.rs +++ b/crates/typst/src/eval/auto.rs diff --git a/src/eval/cast.rs b/crates/typst/src/eval/cast.rs index 917972ed..917972ed 100644 --- a/src/eval/cast.rs +++ b/crates/typst/src/eval/cast.rs diff --git a/src/eval/datetime.rs b/crates/typst/src/eval/datetime.rs index f3c4a5a1..f3c4a5a1 100644 --- a/src/eval/datetime.rs +++ b/crates/typst/src/eval/datetime.rs diff --git a/src/eval/dict.rs b/crates/typst/src/eval/dict.rs index 3e6233ae..3e6233ae 100644 --- a/src/eval/dict.rs +++ b/crates/typst/src/eval/dict.rs diff --git a/src/eval/func.rs b/crates/typst/src/eval/func.rs index 22f948ce..22f948ce 100644 --- a/src/eval/func.rs +++ b/crates/typst/src/eval/func.rs diff --git a/src/eval/int.rs b/crates/typst/src/eval/int.rs index 4e081617..4e081617 100644 --- a/src/eval/int.rs +++ b/crates/typst/src/eval/int.rs diff --git a/src/eval/library.rs b/crates/typst/src/eval/library.rs index 1b05de83..1b05de83 100644 --- a/src/eval/library.rs +++ b/crates/typst/src/eval/library.rs diff --git a/src/eval/methods.rs b/crates/typst/src/eval/methods.rs index 62ac4095..62ac4095 100644 --- a/src/eval/methods.rs +++ b/crates/typst/src/eval/methods.rs diff --git a/src/eval/mod.rs b/crates/typst/src/eval/mod.rs index fe28e3f3..fe28e3f3 100644 --- a/src/eval/mod.rs +++ b/crates/typst/src/eval/mod.rs diff --git a/src/eval/module.rs b/crates/typst/src/eval/module.rs index 0bc6bf38..0bc6bf38 100644 --- a/src/eval/module.rs +++ b/crates/typst/src/eval/module.rs diff --git a/src/eval/none.rs b/crates/typst/src/eval/none.rs index ab7644a7..ab7644a7 100644 --- a/src/eval/none.rs +++ b/crates/typst/src/eval/none.rs diff --git a/src/eval/ops.rs b/crates/typst/src/eval/ops.rs index 0880a87e..0880a87e 100644 --- a/src/eval/ops.rs +++ b/crates/typst/src/eval/ops.rs diff --git a/src/eval/scope.rs b/crates/typst/src/eval/scope.rs index f3e13715..f3e13715 100644 --- a/src/eval/scope.rs +++ b/crates/typst/src/eval/scope.rs diff --git a/src/eval/str.rs b/crates/typst/src/eval/str.rs index f5e5ab00..f5e5ab00 100644 --- a/src/eval/str.rs +++ b/crates/typst/src/eval/str.rs diff --git a/src/eval/symbol.rs b/crates/typst/src/eval/symbol.rs index 0925202e..0925202e 100644 --- a/src/eval/symbol.rs +++ b/crates/typst/src/eval/symbol.rs diff --git a/src/eval/value.rs b/crates/typst/src/eval/value.rs index b1782cab..b1782cab 100644 --- a/src/eval/value.rs +++ b/crates/typst/src/eval/value.rs diff --git a/src/export/mod.rs b/crates/typst/src/export/mod.rs index eb0731a9..eb0731a9 100644 --- a/src/export/mod.rs +++ b/crates/typst/src/export/mod.rs diff --git a/src/export/pdf/font.rs b/crates/typst/src/export/pdf/font.rs index f0676d8f..f0676d8f 100644 --- a/src/export/pdf/font.rs +++ b/crates/typst/src/export/pdf/font.rs diff --git a/src/export/pdf/image.rs b/crates/typst/src/export/pdf/image.rs index 48472d9f..48472d9f 100644 --- a/src/export/pdf/image.rs +++ b/crates/typst/src/export/pdf/image.rs diff --git a/src/export/pdf/mod.rs b/crates/typst/src/export/pdf/mod.rs index 48485862..48485862 100644 --- a/src/export/pdf/mod.rs +++ b/crates/typst/src/export/pdf/mod.rs diff --git a/src/export/pdf/outline.rs b/crates/typst/src/export/pdf/outline.rs index 539647eb..539647eb 100644 --- a/src/export/pdf/outline.rs +++ b/crates/typst/src/export/pdf/outline.rs diff --git a/src/export/pdf/page.rs b/crates/typst/src/export/pdf/page.rs index 22e590d5..22e590d5 100644 --- a/src/export/pdf/page.rs +++ b/crates/typst/src/export/pdf/page.rs diff --git a/src/export/render.rs b/crates/typst/src/export/render.rs index d8115b12..d8115b12 100644 --- a/src/export/render.rs +++ b/crates/typst/src/export/render.rs diff --git a/src/file.rs b/crates/typst/src/file.rs index 8aaa746b..8aaa746b 100644 --- a/src/file.rs +++ b/crates/typst/src/file.rs diff --git a/src/font/book.rs b/crates/typst/src/font/book.rs index 2b7742bf..2b7742bf 100644 --- a/src/font/book.rs +++ b/crates/typst/src/font/book.rs diff --git a/src/font/mod.rs b/crates/typst/src/font/mod.rs index 2353e51c..2353e51c 100644 --- a/src/font/mod.rs +++ b/crates/typst/src/font/mod.rs diff --git a/src/font/variant.rs b/crates/typst/src/font/variant.rs index d4508a59..d4508a59 100644 --- a/src/font/variant.rs +++ b/crates/typst/src/font/variant.rs diff --git a/src/geom/abs.rs b/crates/typst/src/geom/abs.rs index 4ca3a9a1..4ca3a9a1 100644 --- a/src/geom/abs.rs +++ b/crates/typst/src/geom/abs.rs diff --git a/src/geom/align.rs b/crates/typst/src/geom/align.rs index 47acd3a6..47acd3a6 100644 --- a/src/geom/align.rs +++ b/crates/typst/src/geom/align.rs diff --git a/src/geom/angle.rs b/crates/typst/src/geom/angle.rs index c03810d9..c03810d9 100644 --- a/src/geom/angle.rs +++ b/crates/typst/src/geom/angle.rs diff --git a/src/geom/axes.rs b/crates/typst/src/geom/axes.rs index 059d3bb2..059d3bb2 100644 --- a/src/geom/axes.rs +++ b/crates/typst/src/geom/axes.rs diff --git a/src/geom/color.rs b/crates/typst/src/geom/color.rs index c7676c2b..c7676c2b 100644 --- a/src/geom/color.rs +++ b/crates/typst/src/geom/color.rs diff --git a/src/geom/corners.rs b/crates/typst/src/geom/corners.rs index 5ee1e063..5ee1e063 100644 --- a/src/geom/corners.rs +++ b/crates/typst/src/geom/corners.rs diff --git a/src/geom/dir.rs b/crates/typst/src/geom/dir.rs index 48915471..48915471 100644 --- a/src/geom/dir.rs +++ b/crates/typst/src/geom/dir.rs diff --git a/src/geom/ellipse.rs b/crates/typst/src/geom/ellipse.rs index ac20ffd3..ac20ffd3 100644 --- a/src/geom/ellipse.rs +++ b/crates/typst/src/geom/ellipse.rs diff --git a/src/geom/em.rs b/crates/typst/src/geom/em.rs index 8dda9ff6..8dda9ff6 100644 --- a/src/geom/em.rs +++ b/crates/typst/src/geom/em.rs diff --git a/src/geom/fr.rs b/crates/typst/src/geom/fr.rs index c602634d..c602634d 100644 --- a/src/geom/fr.rs +++ b/crates/typst/src/geom/fr.rs diff --git a/src/geom/length.rs b/crates/typst/src/geom/length.rs index 7d0a9841..7d0a9841 100644 --- a/src/geom/length.rs +++ b/crates/typst/src/geom/length.rs diff --git a/src/geom/macros.rs b/crates/typst/src/geom/macros.rs index b1b50e22..b1b50e22 100644 --- a/src/geom/macros.rs +++ b/crates/typst/src/geom/macros.rs diff --git a/src/geom/mod.rs b/crates/typst/src/geom/mod.rs index b7a7ff40..b7a7ff40 100644 --- a/src/geom/mod.rs +++ b/crates/typst/src/geom/mod.rs diff --git a/src/geom/paint.rs b/crates/typst/src/geom/paint.rs index 10fa9fde..10fa9fde 100644 --- a/src/geom/paint.rs +++ b/crates/typst/src/geom/paint.rs diff --git a/src/geom/path.rs b/crates/typst/src/geom/path.rs index 1c5325a3..1c5325a3 100644 --- a/src/geom/path.rs +++ b/crates/typst/src/geom/path.rs diff --git a/src/geom/point.rs b/crates/typst/src/geom/point.rs index e7811e1e..e7811e1e 100644 --- a/src/geom/point.rs +++ b/crates/typst/src/geom/point.rs diff --git a/src/geom/ratio.rs b/crates/typst/src/geom/ratio.rs index fe87dd6c..fe87dd6c 100644 --- a/src/geom/ratio.rs +++ b/crates/typst/src/geom/ratio.rs diff --git a/src/geom/rel.rs b/crates/typst/src/geom/rel.rs index 88972222..88972222 100644 --- a/src/geom/rel.rs +++ b/crates/typst/src/geom/rel.rs diff --git a/src/geom/rounded.rs b/crates/typst/src/geom/rounded.rs index f1a7ea08..f1a7ea08 100644 --- a/src/geom/rounded.rs +++ b/crates/typst/src/geom/rounded.rs diff --git a/src/geom/scalar.rs b/crates/typst/src/geom/scalar.rs index 71fb1755..71fb1755 100644 --- a/src/geom/scalar.rs +++ b/crates/typst/src/geom/scalar.rs diff --git a/src/geom/shape.rs b/crates/typst/src/geom/shape.rs index 5658c21f..5658c21f 100644 --- a/src/geom/shape.rs +++ b/crates/typst/src/geom/shape.rs diff --git a/src/geom/sides.rs b/crates/typst/src/geom/sides.rs index d4b72a9d..d4b72a9d 100644 --- a/src/geom/sides.rs +++ b/crates/typst/src/geom/sides.rs diff --git a/src/geom/size.rs b/crates/typst/src/geom/size.rs index a2e32b77..a2e32b77 100644 --- a/src/geom/size.rs +++ b/crates/typst/src/geom/size.rs diff --git a/src/geom/smart.rs b/crates/typst/src/geom/smart.rs index a6271c20..a6271c20 100644 --- a/src/geom/smart.rs +++ b/crates/typst/src/geom/smart.rs diff --git a/src/geom/stroke.rs b/crates/typst/src/geom/stroke.rs index 66264d5d..66264d5d 100644 --- a/src/geom/stroke.rs +++ b/crates/typst/src/geom/stroke.rs diff --git a/src/geom/transform.rs b/crates/typst/src/geom/transform.rs index 1ff1dfdd..1ff1dfdd 100644 --- a/src/geom/transform.rs +++ b/crates/typst/src/geom/transform.rs diff --git a/src/ide/analyze.rs b/crates/typst/src/ide/analyze.rs index dad466c1..dad466c1 100644 --- a/src/ide/analyze.rs +++ b/crates/typst/src/ide/analyze.rs diff --git a/src/ide/complete.rs b/crates/typst/src/ide/complete.rs index 16cba1bc..16cba1bc 100644 --- a/src/ide/complete.rs +++ b/crates/typst/src/ide/complete.rs diff --git a/src/ide/highlight.rs b/crates/typst/src/ide/highlight.rs index 2db636e3..2db636e3 100644 --- a/src/ide/highlight.rs +++ b/crates/typst/src/ide/highlight.rs diff --git a/src/ide/jump.rs b/crates/typst/src/ide/jump.rs index 14a82e26..14a82e26 100644 --- a/src/ide/jump.rs +++ b/crates/typst/src/ide/jump.rs diff --git a/src/ide/mod.rs b/crates/typst/src/ide/mod.rs index 4b08b66b..4b08b66b 100644 --- a/src/ide/mod.rs +++ b/crates/typst/src/ide/mod.rs diff --git a/src/ide/tooltip.rs b/crates/typst/src/ide/tooltip.rs index 35125e92..35125e92 100644 --- a/src/ide/tooltip.rs +++ b/crates/typst/src/ide/tooltip.rs diff --git a/src/image.rs b/crates/typst/src/image.rs index 3a245c14..3a245c14 100644 --- a/src/image.rs +++ b/crates/typst/src/image.rs diff --git a/src/lib.rs b/crates/typst/src/lib.rs index 8b3d1d3d..8b3d1d3d 100644 --- a/src/lib.rs +++ b/crates/typst/src/lib.rs diff --git a/src/model/content.rs b/crates/typst/src/model/content.rs index 015f8b76..015f8b76 100644 --- a/src/model/content.rs +++ b/crates/typst/src/model/content.rs diff --git a/src/model/element.rs b/crates/typst/src/model/element.rs index c673ee41..c673ee41 100644 --- a/src/model/element.rs +++ b/crates/typst/src/model/element.rs diff --git a/src/model/introspect.rs b/crates/typst/src/model/introspect.rs index 42c1a9e1..42c1a9e1 100644 --- a/src/model/introspect.rs +++ b/crates/typst/src/model/introspect.rs diff --git a/src/model/label.rs b/crates/typst/src/model/label.rs index ef8f3edd..ef8f3edd 100644 --- a/src/model/label.rs +++ b/crates/typst/src/model/label.rs diff --git a/src/model/mod.rs b/crates/typst/src/model/mod.rs index ee940236..ee940236 100644 --- a/src/model/mod.rs +++ b/crates/typst/src/model/mod.rs diff --git a/src/model/realize.rs b/crates/typst/src/model/realize.rs index 01c46b81..01c46b81 100644 --- a/src/model/realize.rs +++ b/crates/typst/src/model/realize.rs diff --git a/src/model/selector.rs b/crates/typst/src/model/selector.rs index 9723ee4f..9723ee4f 100644 --- a/src/model/selector.rs +++ b/crates/typst/src/model/selector.rs diff --git a/src/model/styles.rs b/crates/typst/src/model/styles.rs index 23748a3f..23748a3f 100644 --- a/src/model/styles.rs +++ b/crates/typst/src/model/styles.rs diff --git a/src/syntax/ast.rs b/crates/typst/src/syntax/ast.rs index 7d5e2989..7d5e2989 100644 --- a/src/syntax/ast.rs +++ b/crates/typst/src/syntax/ast.rs diff --git a/src/syntax/kind.rs b/crates/typst/src/syntax/kind.rs index 26e949ca..26e949ca 100644 --- a/src/syntax/kind.rs +++ b/crates/typst/src/syntax/kind.rs diff --git a/src/syntax/lexer.rs b/crates/typst/src/syntax/lexer.rs index d95b5b7b..d95b5b7b 100644 --- a/src/syntax/lexer.rs +++ b/crates/typst/src/syntax/lexer.rs diff --git a/src/syntax/mod.rs b/crates/typst/src/syntax/mod.rs index 1ce1e4c0..1ce1e4c0 100644 --- a/src/syntax/mod.rs +++ b/crates/typst/src/syntax/mod.rs diff --git a/src/syntax/node.rs b/crates/typst/src/syntax/node.rs index 6a66416d..6a66416d 100644 --- a/src/syntax/node.rs +++ b/crates/typst/src/syntax/node.rs diff --git a/src/syntax/parser.rs b/crates/typst/src/syntax/parser.rs index 54670df5..54670df5 100644 --- a/src/syntax/parser.rs +++ b/crates/typst/src/syntax/parser.rs diff --git a/src/syntax/reparser.rs b/crates/typst/src/syntax/reparser.rs index a4186fa7..a4186fa7 100644 --- a/src/syntax/reparser.rs +++ b/crates/typst/src/syntax/reparser.rs diff --git a/src/syntax/source.rs b/crates/typst/src/syntax/source.rs index 2f3e4144..2f3e4144 100644 --- a/src/syntax/source.rs +++ b/crates/typst/src/syntax/source.rs diff --git a/src/syntax/span.rs b/crates/typst/src/syntax/span.rs index 5c220252..5c220252 100644 --- a/src/syntax/span.rs +++ b/crates/typst/src/syntax/span.rs diff --git a/src/util/bytes.rs b/crates/typst/src/util/bytes.rs index 9165467b..9165467b 100644 --- a/src/util/bytes.rs +++ b/crates/typst/src/util/bytes.rs diff --git a/src/util/fat.rs b/crates/typst/src/util/fat.rs index d3c9bb20..d3c9bb20 100644 --- a/src/util/fat.rs +++ b/crates/typst/src/util/fat.rs diff --git a/src/util/mod.rs b/crates/typst/src/util/mod.rs index 05914b04..05914b04 100644 --- a/src/util/mod.rs +++ b/crates/typst/src/util/mod.rs diff --git a/docs/src/general/changelog.md b/docs/changelog.md index 95808fab..95808fab 100644 --- a/docs/src/general/changelog.md +++ b/docs/changelog.md diff --git a/docs/src/general/community.md b/docs/community.md index 32d2d185..32d2d185 100644 --- a/docs/src/general/community.md +++ b/docs/community.md diff --git a/ARCHITECTURE.md b/docs/dev/architecture.md index af48401d..af48401d 100644 --- a/ARCHITECTURE.md +++ b/docs/dev/architecture.md diff --git a/docs/src/guides/guide-for-latex-users.md b/docs/guides/guide-for-latex-users.md index b51e8cf1..b51e8cf1 100644 --- a/docs/src/guides/guide-for-latex-users.md +++ b/docs/guides/guide-for-latex-users.md diff --git a/docs/src/guides/welcome.md b/docs/guides/welcome.md index 43ecd181..43ecd181 100644 --- a/docs/src/guides/welcome.md +++ b/docs/guides/welcome.md diff --git a/docs/src/general/overview.md b/docs/overview.md index e3fa3b3c..e3fa3b3c 100644 --- a/docs/src/general/overview.md +++ b/docs/overview.md diff --git a/docs/src/reference/details.yml b/docs/reference/details.yml index 8e9af3a0..8e9af3a0 100644 --- a/docs/src/reference/details.yml +++ b/docs/reference/details.yml diff --git a/docs/src/reference/groups.yml b/docs/reference/groups.yml index 3bc80339..3bc80339 100644 --- a/docs/src/reference/groups.yml +++ b/docs/reference/groups.yml diff --git a/docs/src/reference/scripting.md b/docs/reference/scripting.md index c18bdc4b..c18bdc4b 100644 --- a/docs/src/reference/scripting.md +++ b/docs/reference/scripting.md diff --git a/docs/src/reference/styling.md b/docs/reference/styling.md index 85095e34..85095e34 100644 --- a/docs/src/reference/styling.md +++ b/docs/reference/styling.md diff --git a/docs/src/reference/syntax.md b/docs/reference/syntax.md index d0cd80d7..d0cd80d7 100644 --- a/docs/src/reference/syntax.md +++ b/docs/reference/syntax.md diff --git a/docs/src/reference/types.md b/docs/reference/types.md index 3e08d670..3e08d670 100644 --- a/docs/src/reference/types.md +++ b/docs/reference/types.md diff --git a/docs/src/reference/welcome.md b/docs/reference/welcome.md index fc526f52..fc526f52 100644 --- a/docs/src/reference/welcome.md +++ b/docs/reference/welcome.md diff --git a/docs/src/tutorial/1-writing.md b/docs/tutorial/1-writing.md index a2a2ca65..a2a2ca65 100644 --- a/docs/src/tutorial/1-writing.md +++ b/docs/tutorial/1-writing.md diff --git a/docs/src/tutorial/2-formatting.md b/docs/tutorial/2-formatting.md index c231b878..c231b878 100644 --- a/docs/src/tutorial/2-formatting.md +++ b/docs/tutorial/2-formatting.md diff --git a/docs/src/tutorial/3-advanced.md b/docs/tutorial/3-advanced.md index 42a810fd..42a810fd 100644 --- a/docs/src/tutorial/3-advanced.md +++ b/docs/tutorial/3-advanced.md diff --git a/docs/src/tutorial/4-template.md b/docs/tutorial/4-template.md index 320f82b2..320f82b2 100644 --- a/docs/src/tutorial/4-template.md +++ b/docs/tutorial/4-template.md diff --git a/docs/src/tutorial/welcome.md b/docs/tutorial/welcome.md index 530336cb..530336cb 100644 --- a/docs/src/tutorial/welcome.md +++ b/docs/tutorial/welcome.md diff --git a/tests/Cargo.toml b/tests/Cargo.toml index c87ecc79..44dd62a5 100644 --- a/tests/Cargo.toml +++ b/tests/Cargo.toml @@ -7,8 +7,8 @@ edition.workspace = true publish = false [dev-dependencies] -typst = { path = ".." } -typst-library = { path = "../library" } +typst = { path = "../crates/typst" } +typst-library = { path = "../crates/typst-library" } comemo = "0.3" iai = { git = "https://github.com/reknih/iai" } once_cell = "1" |
