repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-cli/src/main.rs | crates/typst-cli/src/main.rs | mod args;
mod compile;
mod completions;
mod deps;
mod download;
mod eval;
mod fonts;
mod greet;
mod info;
mod init;
mod package;
mod query;
#[cfg(feature = "http-server")]
mod server;
mod terminal;
mod timings;
#[cfg(feature = "self-update")]
mod update;
mod watch;
mod world;
use std::cell::Cell;
use std::io::{self, W... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-cli/src/package.rs | crates/typst-cli/src/package.rs | use typst_kit::package::PackageStorage;
use crate::args::PackageArgs;
use crate::download;
/// Returns a new package storage for the given args.
pub fn storage(args: &PackageArgs) -> PackageStorage {
PackageStorage::new(
args.package_cache_path.clone(),
args.package_path.clone(),
download:... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/page.rs | crates/typst-pdf/src/page.rs | use std::num::NonZeroU32;
use krilla::page::{NumberingStyle, PageLabel};
use typst_library::model::Numbering;
pub(crate) trait PageLabelExt {
/// Create a new `PageLabel` from a `Numbering` applied to a page
/// number.
fn generate(numbering: &Numbering, number: u64) -> Option<PageLabel>;
/// Creates... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/link.rs | crates/typst-pdf/src/link.rs | use krilla::action::{Action, LinkAction};
use krilla::annotation::Target;
use krilla::destination::XyzDestination;
use krilla::geom as kg;
use typst_library::diag::{At, ExpectInternal, SourceResult, bail};
use typst_library::introspection::DocumentPosition;
use typst_library::layout::{Abs, Point, Size};
use typst_libra... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/paint.rs | crates/typst-pdf/src/paint.rs | //! Convert paint types from Typst to krilla.
use krilla::color::{self, cmyk, luma, rgb};
use krilla::num::NormalizedF32;
use krilla::paint::{
Fill, LinearGradient, Pattern, RadialGradient, SpreadMethod, Stop, Stroke,
StrokeDash, SweepGradient,
};
use krilla::surface::Surface;
use typst_library::diag::SourceRe... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/shape.rs | crates/typst-pdf/src/shape.rs | use krilla::geom::{Path, PathBuilder, Rect};
use krilla::surface::Surface;
use typst_library::diag::SourceResult;
use typst_library::visualize::{Geometry, Shape};
use typst_syntax::Span;
use typst_utils::defer;
use crate::convert::{FrameContext, GlobalContext};
use crate::util::{AbsExt, TransformExt, convert_path};
us... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/lib.rs | crates/typst-pdf/src/lib.rs | //! Exporting Typst documents to PDF.
mod attach;
mod convert;
mod image;
mod link;
mod metadata;
mod outline;
mod page;
mod paint;
mod shape;
mod tags;
mod text;
mod util;
pub use self::metadata::{Timestamp, Timezone};
use std::fmt::{self, Debug, Formatter};
use ecow::eco_format;
use krilla::configure::Validator;
... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/convert.rs | crates/typst-pdf/src/convert.rs | use ecow::{EcoVec, eco_format};
use indexmap::IndexMap;
use krilla::configure::{Configuration, ValidationError, Validator};
use krilla::destination::NamedDestination;
use krilla::embed::EmbedError;
use krilla::error::KrillaError;
use krilla::geom::PathBuilder;
use krilla::page::{PageLabel, PageSettings};
use krilla::pd... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/image.rs | crates/typst-pdf/src/image.rs | use std::hash::{Hash, Hasher};
use std::sync::{Arc, OnceLock};
use ecow::eco_format;
use image::{DynamicImage, EncodableLayout, GenericImageView, Rgba};
use krilla::image::{BitsPerComponent, CustomImage, ImageColorspace};
use krilla::pdf::PdfDocument;
use krilla::surface::Surface;
use krilla_svg::{SurfaceExt, SvgSetti... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/text.rs | crates/typst-pdf/src/text.rs | use std::ops::Range;
use std::sync::Arc;
use bytemuck::TransparentWrapper;
use krilla::surface::{Location, Surface};
use krilla::text::GlyphId;
use typst_library::diag::{SourceResult, bail};
use typst_library::layout::Size;
use typst_library::text::{Font, Glyph, TextItem};
use typst_library::visualize::FillRule;
use t... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/util.rs | crates/typst-pdf/src/util.rs | //! Basic utilities for converting Typst types to krilla.
use ecow::{EcoString, eco_format};
use krilla::geom as kg;
use krilla::geom::PathBuilder;
use krilla::paint as kp;
use krilla::tagging as kt;
use typst_library::foundations::Repr;
use typst_library::layout::{Abs, Point, Sides, Size, Transform};
use typst_librar... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/outline.rs | crates/typst-pdf/src/outline.rs | use krilla::outline::{Outline as KrillaOutline, OutlineNode as KrillaOutlineNode};
use typst_library::foundations::{NativeElement, Packed, StyleChain};
use typst_library::model::{HeadingElem, OutlineNode};
use crate::convert::GlobalContext;
pub(crate) fn build_outline(gc: &GlobalContext) -> KrillaOutline {
let el... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/attach.rs | crates/typst-pdf/src/attach.rs | use std::sync::Arc;
use krilla::Document;
use krilla::embed::{AssociationKind, EmbeddedFile, MimeType};
use typst_library::diag::{SourceResult, bail};
use typst_library::foundations::{NativeElement, StyleChain};
use typst_library::pdf::{AttachElem, AttachedFileRelationship};
use crate::convert::GlobalContext;
use cra... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/metadata.rs | crates/typst-pdf/src/metadata.rs | use krilla::metadata::{Metadata, TextDirection};
use typst_library::foundations::{Datetime, Smart};
use typst_library::layout::Dir;
use typst_library::text::Locale;
use crate::convert::GlobalContext;
pub(crate) fn build_metadata(gc: &GlobalContext, doc_lang: Option<Locale>) -> Metadata {
let creator = format!("Ty... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/mod.rs | crates/typst-pdf/src/tags/mod.rs | use krilla::configure::Validator;
use krilla::geom as kg;
use krilla::page::Page;
use krilla::surface::Surface;
use krilla::tagging::{ArtifactType, ContentTag, SpanTag};
use typst_library::diag::SourceResult;
use typst_library::layout::{FrameParent, PagedDocument, Point, Rect, Size};
use typst_library::text::{Locale, T... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/resolve.rs | crates/typst-pdf/src/tags/resolve.rs | use std::num::NonZeroU16;
use ecow::EcoVec;
use krilla::tagging::{self as kt, Node, Tag, TagGroup, TagKind};
use krilla::tagging::{Identifier, TagTree};
use smallvec::SmallVec;
use typst_library::diag::{At, SourceDiagnostic, SourceResult, error};
use typst_library::text::Locale;
use typst_syntax::Span;
use crate::Pdf... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/groups.rs | crates/typst-pdf/src/tags/groups.rs | use std::collections::hash_map::Entry;
use krilla::tagging::{ArtifactType, Identifier, ListNumbering, TagKind};
use rustc_hash::FxHashMap;
use typst_library::foundations::{Content, Packed};
use typst_library::introspection::Location;
use typst_library::layout::{GridCell, Inherit};
use typst_library::math::EquationElem... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/util/prop.rs | crates/typst-pdf/src/tags/util/prop.rs | //! Convenience methods to retrieve a property value by passing the default
//! stylechain.
//! Since in the PDF export all elements are materialized, meaning all of their
//! fields have been copied from the stylechain, there is no point in providing
//! any other stylechain.
use typst_library::foundations::{
Nat... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/util/idvec.rs | crates/typst-pdf/src/tags/util/idvec.rs | use std::marker::PhantomData;
#[derive(Debug, Default, Clone, Eq, PartialEq)]
pub struct IdVec<T> {
inner: Vec<T>,
}
impl<T> IdVec<T> {
pub const fn new() -> Self {
Self { inner: Vec::new() }
}
pub fn next_id(&self) -> Id<T> {
Id::new(self.inner.len() as u32)
}
pub fn push(&m... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/util/mod.rs | crates/typst-pdf/src/tags/util/mod.rs | use krilla::tagging as kt;
use krilla::tagging::{ArtifactType, NaiveRgbColor};
use typst_library::pdf::{ArtifactKind, TableHeaderScope};
use typst_library::text::Locale;
use typst_library::visualize::Paint;
mod idvec;
mod prop;
pub use idvec::*;
pub use prop::*;
// Best effort fallible conversion.
pub fn paint_to_co... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/tree/text.rs | crates/typst-pdf/src/tags/tree/text.rs | use krilla::tagging::{LineHeight, NaiveRgbColor, TextDecorationType};
use typst_library::diag::{SourceDiagnostic, error};
use typst_library::foundations::{Content, Packed, Smart};
use typst_library::layout::Length;
use typst_library::text::{
HighlightElem, OverlineElem, ScriptKind, StrikeElem, SubElem, SuperElem, T... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/tree/build.rs | crates/typst-pdf/src/tags/tree/build.rs | //! Building the logical tree.
//!
//! The tree of [`Frame`]s which is split up into pages doesn't necessarily
//! represent the logical structure of the Typst document. The logical structure
//! is instead defined by the start and end [`introspection::Tag`]s and
//! additional insertions of frames by the means of [`Fr... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/tree/mod.rs | crates/typst-pdf/src/tags/tree/mod.rs | use crate::PdfOptions;
use crate::tags::GroupId;
use crate::tags::context::{BBoxCtx, BBoxId, Ctx};
use crate::tags::groups::{Group, GroupKind, Groups};
use crate::tags::tree::build::TreeBuilder;
use crate::tags::tree::text::TextAttrs;
use ecow::EcoVec;
use krilla::surface::Surface;
use krilla::tagging::{ArtifactType, C... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/context/list.rs | crates/typst-pdf/src/tags/context/list.rs | use krilla::tagging::Tag;
use crate::tags::groups::{GroupId, GroupKind, Groups};
use crate::tags::resolve::TagNode;
#[derive(Debug, Clone)]
pub struct ListCtx {
last_item: Option<ListItem>,
}
#[derive(Debug, Clone)]
struct ListItem {
/// The id of the `LI` tag.
id: GroupId,
}
impl ListCtx {
pub fn n... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/context/table.rs | crates/typst-pdf/src/tags/context/table.rs | use std::io::Write as _;
use std::num::NonZeroU32;
use std::ops::Range;
use std::sync::Arc;
use az::SaturatingAs;
use krilla::tagging as kt;
use krilla::tagging::{NaiveRgbColor, Tag, TagKind};
use rustc_hash::FxHashMap;
use smallvec::SmallVec;
use typst_library::foundations::Packed;
use typst_library::layout::resolve:... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/context/grid.rs | crates/typst-pdf/src/tags/context/grid.rs | use std::num::NonZeroU32;
use az::SaturatingAs;
use typst_library::foundations::Packed;
use typst_library::layout::resolve::CellGrid;
use typst_library::layout::{GridCell, GridElem};
use crate::tags::context::GridId;
use crate::tags::groups::GroupId;
use crate::tags::tree::Tree;
use crate::tags::util::PropertyValCopi... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/context/mod.rs | crates/typst-pdf/src/tags/context/mod.rs | use std::cell::OnceCell;
use krilla::geom as kg;
use krilla::tagging::{BBox, Identifier, Node, TagKind};
use typst_library::layout::{Abs, Point, Rect};
use crate::convert::FrameContext;
use crate::tags::context::figure::build_figure;
use crate::tags::context::grid::build_grid;
use crate::tags::context::table::build_t... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/context/figure.rs | crates/typst-pdf/src/tags/context/figure.rs | use krilla::tagging::TagKind;
use krilla::tagging::{self as kt, Tag};
use smallvec::SmallVec;
use typst_library::foundations::Packed;
use typst_library::model::FigureElem;
use crate::tags::context::FigureId;
use crate::tags::groups::{Group, GroupId, GroupKind, Groups};
use crate::tags::resolve::TagNode;
use crate::tag... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-pdf/src/tags/context/outline.rs | crates/typst-pdf/src/tags/context/outline.rs | use krilla::tagging as kt;
use typst_library::foundations::Packed;
use typst_library::model::OutlineEntry;
use crate::tags::GroupId;
use crate::tags::groups::Groups;
#[derive(Debug, Clone)]
pub struct OutlineCtx {
/// The stack of nested `TOC` entries.
stack: Vec<GroupId>,
}
impl OutlineCtx {
pub fn new(... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-svg/src/paint.rs | crates/typst-svg/src/paint.rs | use std::f32::consts::TAU;
use ecow::{EcoString, eco_format};
use typst_library::foundations::Repr;
use typst_library::layout::{Angle, Axes, Frame, Quadrant, Ratio, Size, Transform};
use typst_library::visualize::{Color, FillRule, Gradient, Paint, RatioOrAngle, Tiling};
use typst_utils::hash128;
use xmlwriter::XmlWrit... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-svg/src/shape.rs | crates/typst-svg/src/shape.rs | use ecow::EcoString;
use typst_library::layout::{Abs, Point, Ratio, Size, Transform};
use typst_library::visualize::{
Curve, CurveItem, FixedStroke, Geometry, LineCap, LineJoin, Paint, RelativeTo, Shape,
};
use crate::paint::ColorEncode;
use crate::{SVGRenderer, State, SvgMatrix, SvgPathBuilder};
impl SVGRenderer... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-svg/src/lib.rs | crates/typst-svg/src/lib.rs | //! Rendering of Typst documents into SVG images.
mod image;
mod paint;
mod shape;
mod text;
pub use image::{convert_image_scaling, convert_image_to_base64_url};
use rustc_hash::FxHashMap;
use typst_library::introspection::Introspector;
use typst_library::model::Destination;
use std::fmt::{self, Display, Formatter, ... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-svg/src/image.rs | crates/typst-svg/src/image.rs | use std::sync::Arc;
use base64::Engine;
use ecow::{EcoString, eco_format};
use hayro::{FontData, FontQuery, InterpreterSettings, StandardFont};
use image::{ImageEncoder, codecs::png::PngEncoder};
use typst_library::foundations::Smart;
use typst_library::layout::{Abs, Axes};
use typst_library::visualize::{
Exchange... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-svg/src/text.rs | crates/typst-svg/src/text.rs | use std::io::Read;
use base64::Engine;
use ecow::EcoString;
use ttf_parser::GlyphId;
use typst_library::foundations::Bytes;
use typst_library::layout::{Abs, Point, Ratio, Size, Transform};
use typst_library::text::color::colr_glyph_to_svg;
use typst_library::text::{Font, TextItem};
use typst_library::visualize::{
... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/complete.rs | crates/typst-ide/src/complete.rs | use std::cmp::Reverse;
use std::collections::BTreeMap;
use std::ffi::OsStr;
use ecow::{EcoString, eco_format};
use rustc_hash::FxHashSet;
use serde::{Deserialize, Serialize};
use typst::foundations::{
AutoValue, CastInfo, Func, Label, NativeElement, NoneValue, ParamInfo, Repr,
StyleChain, Styles, Type, Value, ... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | true |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/analyze.rs | crates/typst-ide/src/analyze.rs | use comemo::Track;
use ecow::{EcoString, EcoVec, eco_vec};
use rustc_hash::FxHashSet;
use typst::AsDocument;
use typst::foundations::{Label, Styles, Value};
use typst::layout::PagedDocument;
use typst::model::{BibliographyElem, FigureElem};
use typst::syntax::{LinkedNode, SyntaxKind, ast};
use crate::IdeWorld;
/// Tr... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/lib.rs | crates/typst-ide/src/lib.rs | //! Capabilities for Typst IDE support.
mod analyze;
mod complete;
mod definition;
mod jump;
mod matchers;
mod tooltip;
mod utils;
pub use self::analyze::{analyze_expr, analyze_import, analyze_labels};
pub use self::complete::{Completion, CompletionKind, autocomplete};
pub use self::definition::{Definition, definitio... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/tests.rs | crates/typst-ide/src/tests.rs | use std::borrow::Borrow;
use std::sync::Arc;
use ecow::EcoString;
use rustc_hash::FxHashMap;
use typst::diag::{FileError, FileResult};
use typst::foundations::{Bytes, Datetime, Smart};
use typst::layout::{Abs, Margin, PageElem};
use typst::syntax::package::{PackageSpec, PackageVersion};
use typst::syntax::{FileId, Sou... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/tooltip.rs | crates/typst-ide/src/tooltip.rs | use std::fmt::Write;
use ecow::{EcoString, eco_format};
use typst::AsDocument;
use typst::engine::Sink;
use typst::foundations::{Binding, Capturer, CastInfo, Repr, Value, repr};
use typst::layout::Length;
use typst::syntax::ast::AstNode;
use typst::syntax::{LinkedNode, Side, Source, SyntaxKind, ast};
use typst::utils:... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/matchers.rs | crates/typst-ide/src/matchers.rs | use ecow::EcoString;
use typst::foundations::{Module, Value};
use typst::syntax::ast::AstNode;
use typst::syntax::{LinkedNode, Span, SyntaxKind, ast};
use crate::{IdeWorld, analyze_import};
/// Find the named items starting from the given position.
pub fn named_items<T>(
world: &dyn IdeWorld,
position: Linked... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/jump.rs | crates/typst-ide/src/jump.rs | use ecow::EcoVec;
use typst::introspection::{DocumentPosition, HtmlPosition};
use typst::layout::{Frame, FrameItem, PagedDocument, Point, Position, Size};
use typst::model::{Destination, Url};
use typst::syntax::{FileId, LinkedNode, Side, Source, Span, SyntaxKind};
use typst::visualize::{Curve, CurveItem, FillRule, Geo... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/utils.rs | crates/typst-ide/src/utils.rs | use std::fmt::Write;
use std::ops::ControlFlow;
use comemo::Track;
use ecow::{EcoString, eco_format};
use typst::engine::{Engine, Route, Sink, Traced};
use typst::foundations::{Scope, Value};
use typst::introspection::Introspector;
use typst::syntax::{LinkedNode, SyntaxKind};
use typst::text::{FontInfo, FontStyle};
us... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/crates/typst-ide/src/definition.rs | crates/typst-ide/src/definition.rs | use typst::AsDocument;
use typst::foundations::{Label, Selector, Value};
use typst::syntax::{LinkedNode, Side, Source, Span, ast};
use typst::utils::PicoStr;
use crate::utils::globals;
use crate::{
DerefTarget, IdeWorld, NamedItem, analyze_expr, analyze_import, deref_target,
named_items,
};
/// A definition o... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/docs/src/link.rs | docs/src/link.rs | use regex::Regex;
use typst::diag::{StrResult, bail};
use typst::foundations::{Binding, Func, Type};
use crate::{GROUPS, LIBRARY, get_module};
/// Resolve an intra-doc link.
pub fn resolve(link: &str, base: &str) -> StrResult<String> {
if link.starts_with('#') || link.starts_with("http") {
return Ok(link.... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/docs/src/html.rs | docs/src/html.rs | use std::fmt::{self, Debug, Formatter};
use std::ops::Range;
use ecow::EcoString;
use heck::{ToKebabCase, ToTitleCase};
use pulldown_cmark as md;
use serde::{Deserialize, Serialize};
use typed_arena::Arena;
use typst::diag::{FileError, FileResult, StrResult};
use typst::foundations::{Bytes, Datetime};
use typst::layou... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/docs/src/lib.rs | docs/src/lib.rs | //! Documentation provider for Typst.
mod contribs;
mod html;
mod link;
mod model;
pub use self::contribs::*;
pub use self::html::*;
pub use self::model::*;
use ecow::{EcoString, eco_format};
use heck::ToTitleCase;
use rustc_hash::FxHashSet;
use serde::Deserialize;
use serde_yaml as yaml;
use std::sync::LazyLock;
us... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | true |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/docs/src/model.rs | docs/src/model.rs | use ecow::EcoString;
use heck::ToKebabCase;
use serde::Serialize;
use crate::html::Html;
/// Details about a documentation page and its children.
#[derive(Debug, Serialize)]
pub struct PageModel {
pub route: EcoString,
pub title: EcoString,
pub description: EcoString,
pub part: Option<&'static str>,
... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/docs/src/contribs.rs | docs/src/contribs.rs | use std::cmp::Reverse;
use std::fmt::Write;
use rustc_hash::FxHashMap;
use serde::{Deserialize, Serialize};
use crate::{Html, Resolver};
/// Build HTML detailing the contributors between two tags.
pub fn contributors(resolver: &dyn Resolver, from: &str, to: &str) -> Option<Html> {
let staff = ["laurmaedje", "rek... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
typst/typst | https://github.com/typst/typst/blob/a87f4b15ca86a0b2f98948d8f393608070ed731e/docs/src/main.rs | docs/src/main.rs | use std::fs;
use std::path::{Path, PathBuf};
use clap::Parser;
use typst::layout::PagedDocument;
use typst_docs::{Html, Resolver, provide};
use typst_render::render;
#[derive(Debug)]
struct CliResolver<'a> {
assets_dir: &'a Path,
verbose: bool,
base: &'a str,
}
impl Resolver for CliResolver<'_> {
fn ... | rust | Apache-2.0 | a87f4b15ca86a0b2f98948d8f393608070ed731e | 2026-01-04T15:31:59.400510Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/config.rs | rust/core-lib/src/config.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/linewrap.rs | rust/core-lib/src/linewrap.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/layers.rs | rust/core-lib/src/layers.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/tabs.rs | rust/core-lib/src/tabs.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/lib.rs | rust/core-lib/src/lib.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/line_cache_shadow.rs | rust/core-lib/src/line_cache_shadow.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/event_context.rs | rust/core-lib/src/event_context.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/view.rs | rust/core-lib/src/view.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/line_ending.rs | rust/core-lib/src/line_ending.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/styles.rs | rust/core-lib/src/styles.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/editor.rs | rust/core-lib/src/editor.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/annotations.rs | rust/core-lib/src/annotations.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/watcher.rs | rust/core-lib/src/watcher.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/core.rs | rust/core-lib/src/core.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/backspace.rs | rust/core-lib/src/backspace.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/find.rs | rust/core-lib/src/find.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/client.rs | rust/core-lib/src/client.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/syntax.rs | rust/core-lib/src/syntax.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/whitespace.rs | rust/core-lib/src/whitespace.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/recorder.rs | rust/core-lib/src/recorder.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/file.rs | rust/core-lib/src/file.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/edit_types.rs | rust/core-lib/src/edit_types.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/selection.rs | rust/core-lib/src/selection.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/word_boundaries.rs | rust/core-lib/src/word_boundaries.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/rpc.rs | rust/core-lib/src/rpc.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/edit_ops.rs | rust/core-lib/src/edit_ops.rs | // Copyright 2020 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/width_cache.rs | rust/core-lib/src/width_cache.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/line_offset.rs | rust/core-lib/src/line_offset.rs | // Copyright 2020 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/movement.rs | rust/core-lib/src/movement.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/index_set.rs | rust/core-lib/src/index_set.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/fuchsia/ledger.rs | rust/core-lib/src/fuchsia/ledger.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/fuchsia/sync.rs | rust/core-lib/src/fuchsia/sync.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/fuchsia/mod.rs | rust/core-lib/src/fuchsia/mod.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/plugins/catalog.rs | rust/core-lib/src/plugins/catalog.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/plugins/manifest.rs | rust/core-lib/src/plugins/manifest.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/plugins/mod.rs | rust/core-lib/src/plugins/mod.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/src/plugins/rpc.rs | rust/core-lib/src/plugins/rpc.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/tests/rpc.rs | rust/core-lib/tests/rpc.rs | // Copyright 2017 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/core-lib/benches/wrap.rs | rust/core-lib/benches/wrap.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/unicode/src/lib.rs | rust/unicode/src/lib.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/unicode/src/emoji.rs | rust/unicode/src/emoji.rs | #[rustfmt::skip]
pub const EMOJI_TABLE: [char; 1250] = ['\u{23}', '\u{2A}', '\u{30}', '\u{31}', '\u{32}', '\u{33}', '\u{34}',
'\u{35}', '\u{36}', '\u{37}', '\u{38}', '\u{39}', '\u{A9}', '\u{AE}', '\u{203C}',
'\u{2049}', '\u{2122}', '\u{2139}', '\u{2194}', '\u{2195}', '\u{2196}', '\u{2197}', '\u{2198}',
'\u{2199}', '\u{... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/unicode/src/tables.rs | rust/unicode/src/tables.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/unicode/tests/linebreaktest.rs | rust/unicode/tests/linebreaktest.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/unicode/benches/bench.rs | rust/unicode/benches/bench.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/unicode/examples/runtestdata.rs | rust/unicode/examples/runtestdata.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/rope.rs | rust/rope/src/rope.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/test_helpers.rs | rust/rope/src/test_helpers.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/engine.rs | rust/rope/src/engine.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/lib.rs | rust/rope/src/lib.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/delta.rs | rust/rope/src/delta.rs | // Copyright 2016 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | true |
xi-editor/xi-editor | https://github.com/xi-editor/xi-editor/blob/a2dea3059312795c77caadc639df49bf8a7008eb/rust/rope/src/diff.rs | rust/rope/src/diff.rs | // Copyright 2018 The xi-editor Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or ag... | rust | Apache-2.0 | a2dea3059312795c77caadc639df49bf8a7008eb | 2026-01-04T15:41:09.005987Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.