cargo update

This commit is contained in:
Isaac Mills 2024-04-04 17:51:57 -04:00
parent 1207336fd3
commit 26d24fa36b
Signed by: fnmain
GPG key ID: B67D7410F33A0F61
2 changed files with 55 additions and 42 deletions

68
Cargo.lock generated
View file

@ -4,21 +4,35 @@ version = 3
[[package]]
name = "autocfg"
version = "1.1.0"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
checksum = "f1fdabc7756949593fe60f30ec81974b613357de856987752631dea1e3394c80"
[[package]]
name = "bitflags"
version = "2.4.2"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ed570934406eb16438a4e976b1b4500774099c13b8cb96eec99f620f05090ddf"
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
[[package]]
name = "bytemuck"
version = "1.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5d6d68c57235a3a081186990eca2867354726650f42f7516ca50c28d6281fd15"
dependencies = [
"bytemuck_derive",
]
[[package]]
name = "bytemuck_derive"
version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4da9a32f3fed317401fa3c862968128267c3106685286e15d5aaa3d7389c2f60"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "cosmic-jotdown"
@ -78,9 +92,12 @@ dependencies = [
[[package]]
name = "font-types"
version = "0.4.3"
version = "0.5.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b7f6040d337bd44434ab21fc6509154edf2cece88b23758d9d64654c4e7730b"
checksum = "bd6784a76a9c2b136ea3b8462391e9328252e938eb706eb44d752723b4c3a533"
dependencies = [
"bytemuck",
]
[[package]]
name = "fontconfig-parser"
@ -108,8 +125,10 @@ dependencies = [
[[package]]
name = "jotdown"
version = "0.3.2"
source = "git+https://git.nations.lol/fnmain/jotdown#b7c31f6895695a23990fab271f85711fae4e1ea0"
dependencies = [
"databake",
"serde",
]
[[package]]
@ -183,10 +202,11 @@ checksum = "f60fcc7d6849342eff22c4350c8b9a989ee8ceabc4b481253e8946b9fe83d684"
[[package]]
name = "read-fonts"
version = "0.16.0"
version = "0.19.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "81c524658d3b77930a391f559756d91dbe829ab6cf4687083f615d395df99722"
checksum = "ea75b5ec052843434d263ef7a4c31cf86db5908c729694afb1ad3c884252a1b6"
dependencies = [
"bytemuck",
"font-types",
]
@ -225,6 +245,26 @@ version = "1.0.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "58bf37232d3bb9a2c4e641ca2a11d83b5062066f88df7fed36c28772046d65ba"
[[package]]
name = "serde"
version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
dependencies = [
"serde_derive",
]
[[package]]
name = "serde_derive"
version = "1.0.197"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
dependencies = [
"proc-macro2",
"quote",
"syn",
]
[[package]]
name = "slotmap"
version = "1.0.7"
@ -236,15 +276,15 @@ dependencies = [
[[package]]
name = "smallvec"
version = "1.13.1"
version = "1.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
[[package]]
name = "swash"
version = "0.1.13"
version = "0.1.15"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9af636fb90d39858650cae1088a37e2862dab4e874a0bb49d6dfb5b2dacf0e24"
checksum = "06ec889a8e0a6fcb91041996c8f1f6be0fe1a09e94478785e07c32ce2bca2d2b"
dependencies = [
"read-fonts",
"yazi",
@ -253,9 +293,9 @@ dependencies = [
[[package]]
name = "syn"
version = "2.0.53"
version = "2.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7383cd0e49fff4b6b90ca5670bfd3e9d6a733b3f90c686605aa7eec8c4996032"
checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687"
dependencies = [
"proc-macro2",
"quote",

View file

@ -185,34 +185,7 @@ impl<'a, 'b, T: Iterator<Item = Event<'a>>> Iterator for JotdownBufferIter<'a, '
url_map: if urls.is_empty() {
None
} else {
RangeMap::try_from_iter(
urls.into_iter(), // .scan(
// (
// 0,
// buffer
// .layout_runs()
// .flat_map(|run| run.glyphs.into_iter())
// .enumerate(),
// ),
// |(len, glyphs), range| {
// let mut start = None;
// while let Some(glyph) = glyphs.next() {
// *len += glyph.1.end - glyph.1.start;
// if start.is_none() && *len >= range.0.start {
// start = Some(glyph.0);
// } else if *len >= range.0.end {
// return Some((
// range_map::Range::new(start.unwrap(), glyph.0),
// range.1,
// ));
// }
// }
// log::info!("{:?}", start);
// return None;
// },
// ),
)
.ok()
RangeMap::try_from_iter(urls.into_iter()).ok()
},
buffer,
image_url,