18 releases (breaking)

new 0.15.0 Jan 25, 2023
0.13.0 Nov 21, 2022
0.12.1 Jul 14, 2022
0.9.0 Feb 11, 2022
0.4.0 Nov 18, 2021

#280 in Data structures

Download history 2045/week @ 2022-10-08 1879/week @ 2022-10-15 1491/week @ 2022-10-22 1445/week @ 2022-10-29 1462/week @ 2022-11-05 1498/week @ 2022-11-12 1581/week @ 2022-11-19 1595/week @ 2022-11-26 1496/week @ 2022-12-03 1657/week @ 2022-12-10 1723/week @ 2022-12-17 772/week @ 2022-12-24 1226/week @ 2022-12-31 1601/week @ 2023-01-07 1283/week @ 2023-01-14 1405/week @ 2023-01-21

5,612 downloads per month
Used in 9 crates (7 directly)

MIT license

210KB
1.5K SLoC

Rust 1K SLoC // 0.0% comments JavaScript 261 SLoC // 0.1% comments TypeScript 88 SLoC // 0.1% comments

import_map

Discord Chat

A Rust implementation of WICG Import Maps specification.

This crates is used in Deno project.

The implementation is tested against WPT test suite.

Developing

// checkout git submodules
$ git submodule update --init --recursive

// build all targets
$ cargo build --all-targets

// test it
$ cargo test

Opening a pull request

  1. Format code: rustfmt ./src/lib.rs

  2. Check that clippy doesn't produce warnings: cargo clippy --all-targets --all-features --release -- -D clippy::all

Dependencies

~2.4–4MB
~102K SLoC