googlefonts / fontc

Where in we pursue oxidizing (context: https://github.com/googlefonts/oxidize) fontmake.
Apache License 2.0
62 stars 10 forks source link

Compilation failure #859

Open madig opened 2 days ago

madig commented 2 days ago

On git main (2f85245e6bf8fa89dd0f11a1f18fbe3f6e54612d), I get this error while trying to compile all binaries:

error[E0433]: failed to resolve: could not find `format_smolstr` in `smol_str`
  --> otl-normalizer/src/glyph_names.rs:47:43
   |
47 | ...                   smol_str::format_smolstr!("uni{raw:04X}")
   |                                 ^^^^^^^^^^^^^^ could not find `format_smolstr` in `smol_str`

error[E0433]: failed to resolve: could not find `format_smolstr` in `smol_str`
  --> otl-normalizer/src/glyph_names.rs:49:43
   |
49 | ...                   smol_str::format_smolstr!("u{raw:X}")
   |                                 ^^^^^^^^^^^^^^ could not find `format_smolstr` in `smol_str`

error[E0433]: failed to resolve: could not find `format_smolstr` in `smol_str`
  --> otl-normalizer/src/glyph_names.rs:55:39
   |
55 |                     None => smol_str::format_smolstr!("glyph.{:05}", gid.to_u16()).into(),
   |                                       ^^^^^^^^^^^^^^ could not find `format_smolstr` in `smol_str`

error[E0432]: unresolved import `smol_str::format_smolstr`
  --> glyphs-reader/src/propagate_anchors.rs:12:16
   |
12 | use smol_str::{format_smolstr, SmolStr};
   |                ^^^^^^^^^^^^^^ no `format_smolstr` in the root

error[E0433]: failed to resolve: could not find `format_smolstr` in `smol_str`
   --> glyphs-reader/src/glyphdata.rs:261:38
    |
261 |             let new_part = smol_str::format_smolstr!("{part}-{script}");
    |                                      ^^^^^^^^^^^^^^ could not find `format_smolstr` in `smol_str`

Using Rust 1.79.0 on Ubuntu 22.04 inside WSL2.

cmyr commented 5 hours ago

what command are you using, exactly? I can't reproduce on 1.79 (macos)