Skip to content

Commit

Permalink
misc: 0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zimond committed Jul 19, 2023
1 parent 2207207 commit 53d2f9a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fontkit"
version = "0.3.1"
version = "0.4.0"
edition = "2021"
authors = ["Zimon Dai <[email protected]>"]
description = "A simple library for font loading and indexing"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fontkit-rs",
"version": "0.0.3",
"version": "0.0.4",
"description": "Toolkit used to load, match, measure, and render texts",
"main": "pkg/bundler/index.js",
"directories": {
Expand Down
8 changes: 6 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ use ouroboros::self_referencing;
use serde::{Deserialize, Serialize};
#[cfg(not(wasm))]
use std::cell::RefCell;
use std::collections::{HashMap, HashSet};
#[cfg(not(dashmap))]
use std::collections::HashMap;
use std::collections::HashSet;
use std::fmt;
use std::ops::Deref;
#[cfg(not(wasm))]
Expand Down Expand Up @@ -120,8 +122,10 @@ struct Name {
#[derive(Clone)]
pub struct Font {
key: FontKey,
#[allow(unused)]
index: u32,
names: Vec<Name>,
#[allow(unused)]
style_names: Vec<Name>,
face: Arc<ArcSwap<Option<StaticFace>>>,
path: Option<PathBuf>,
Expand Down Expand Up @@ -622,7 +626,7 @@ enum Filter<'a> {

#[cfg(not(wasm))]
std::thread_local! {
static ALLOCS: RefCell<HashMap<u64, usize>> = RefCell::new(HashMap::new());
static ALLOCS: RefCell<std::collections::HashMap<u64, usize>> = RefCell::new(std::collections::HashMap::new());
}

#[cfg(not(wasm))]
Expand Down

0 comments on commit 53d2f9a

Please sign in to comment.