module-lang 1.0.0

Module and import resolution for multi-file languages.
Documentation
# =============================================================================
#  R E P S   ยท   module-lang
# =============================================================================
[package]
name    = "module-lang"
version = "1.0.0"

# Minimum Supported Rust Version (MSRV)
rust-version = "1.85"
edition = "2024"

# License
license = "Apache-2.0 OR MIT"

# Readme
readme = "README.md"

# Description
description = "Module and import resolution for multi-file languages."

# Keywords (5 max)
keywords = ["compiler", "language", "modules", "imports"]

# Categories
categories = ["development-tools", "compilers"]

# Links
homepage      = "https://github.com/jamesgober/module-lang"
repository    = "https://github.com/jamesgober/module-lang"
documentation = "https://docs.rs/module-lang"

# Authors
authors = ["James Gober <me@jamesgober.com>"]

[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]

[lib]
name = "module_lang"
path = "src/lib.rs"


# FEATURE FLAGS
# #################################
[features]
default = ["std"]
std = ["source-lang/std", "symbol-lang/std"]
# Serialization for the plain handle and metadata types (`ModuleId`, `Visibility`).
serde = ["dep:serde"]


# DEPENDENCIES
# #################################
[dependencies]
# Interned name handles (`Symbol`): the key every module and item is named by.
symbol-lang = { version = "1", default-features = false }
# Stable source-file ids (`SourceId`): which file each module was read from.
source-lang = { version = "1", default-features = false }
serde = { version = "1", optional = true, default-features = false, features = ["derive", "alloc"] }


# DEV DEPENDENCIES
# #################################
[dev-dependencies]
# Interner used by the examples and tests to mint `Symbol`s from names.
intern-lang = "1"
criterion = { version = "0.5", features = ["html_reports"] }
proptest  = "1"
# Concrete format for exercising the `serde` round-trip in tests.
serde_json = "1"

[target.'cfg(loom)'.dev-dependencies]
loom = "0.7"


# BENCHMARKS
# #################################
[[bench]]
name    = "bench"
harness = false


# RELEASE PROFILE
# #################################
[profile.release]
opt-level     = 3
lto           = "fat"
codegen-units = 1
panic         = "abort"
strip         = "symbols"