cloudflare / lol-html

Low output latency streaming HTML parser/rewriter with CSS selector-based API
https://crates.io/crates/lol-html
BSD 3-Clause "New" or "Revised" License
1.47k stars 82 forks source link

Update hashbrown (Fails with latest Rust because stdsimd was deprecated) #218

Open Ciantic opened 2 months ago

Ciantic commented 2 months ago

This is major pain in other packages that depend on hashbrown too, simply put nothing compiles that depends on old hashbrowns because Rust decided to deprecate stdsimd causing old builds to fail.

Solution is to update hashbrown dependency:

error[E0635]: unknown feature `stdsimd`                                                                                                                                                       
  --> \.cargo\registry\src\index.crates.io-6f17d22bba15001f\ahash-0.8.6\src/lib.rs:99:42
   |
99 | #![cfg_attr(feature = "stdsimd", feature(stdsimd))]

This is because lol_html is dependent on old version of the hashbrowns that depends on old version of ahash:

$ cargo tree -i ahash@0.8.6
ahash v0.8.6
└── hashbrown v0.13.2
    └── lol_html v1.2.1