cosmic-text/src
bjorn3 95e36249d5 Remove the dependency on ouroboros
This reduces compilation time by removing a dependency on syn and other
dependencies of ouroboros_macros. In addition it saves a lot of unused
codegened methods.

On my laptop (2 core + HT) this reduces compilation time by ~20%. On a
many core system this doesn't help much though as the critical path path
consists of both ttf-parser -> rustybuzz and swash. Further gains will
likely need to be made by reducing compilation time for these crates.

Benchmark 1: cargo build
  Time (mean ± σ):     25.150 s ±  0.167 s    [User: 84.414 s, System: 7.335 s]
  Range (min … max):   24.909 s … 25.444 s    10 runs

Benchmark 1: cargo build
  Time (mean ± σ):     19.819 s ±  0.226 s    [User: 67.754 s, System: 5.592 s]
  Range (min … max):   19.492 s … 20.140 s    10 runs

The code is based on an expansion of the ouroboros macro, cleaned up to
remove all unused methods and inline most functions that are only called
once.
2023-06-08 18:00:42 +02:00
..
edit Improve documentation 2023-03-12 10:39:57 +01:00
font Remove the dependency on ouroboros 2023-06-08 18:00:42 +02:00
attrs.rs Remove monospaced from attrs 2023-03-30 08:04:52 -06:00
buffer.rs use checked_sub to fix panic on window resize. 2023-03-30 12:40:14 -06:00
buffer_line.rs Allow buffer reuse in BufferLine 2023-03-27 23:14:40 +02:00
cache.rs Revert "Make FontSystem not self-referencing and update fontdb and rustybuzz" 2023-03-02 18:16:57 -07:00
layout.rs Align Left, Right, and Center works 2023-02-22 18:31:49 -07:00
lib.rs Fix doctest 2023-03-12 10:39:58 +01:00
shape.rs Merge branch 'mut-font-system' of https://github.com/geieredgar/cosmic-text into geieredgar-mut-font-system 2023-03-17 18:15:45 -06:00
swash.rs Remove Mutex from FontSystem 2023-03-12 10:39:56 +01:00