Rust Project
non-Cargo based Rust projects
| Type | object |
|---|---|
| File match |
rust-project.json
|
| Schema URL | https://catalog.lintel.tools/schemas/schemastore/rust-project/latest.json |
| Source | https://www.schemastore.org/rust-project.json |
Validate with Lintel
npx @lintel/lintel check
Type:
object
Properties
sysroot
string
Path to sysroot.
sysroot_src
string
Path to the directory with source code of sysroot crates.
Definitions
crate
object
root_module
string
required
Path to the root module of the crate.
edition
string
required
Edition of the crate.
display_name
string
Crate name used for display purposes, without affecting semantics.
version
string
The crate's version
pattern=^([0-9]+)\.([0-9]+)\.([0-9]+)(?:-([0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*))?(?:\+[0-9A-Za-z-]+)?$
is_workspace_member
boolean
Whether this crate should be treated as a member of the current "workspace".
source
object
(Super)set of .rs files comprising this crate.
2 nested properties
include_dirs
string[]
required
uniqueItems=true
exclude_dirs
string[]
required
uniqueItems=true
cfg
string[]
The set of cfgs activated for a given crate.
uniqueItems=true
target
string
Target triple for this crate.
env
object
Environment variables, used for the env! macro
is_proc_macro
boolean
Whether the crate is a proc-macro crate.
proc_macro_dylib_path
string
For proc-macro crates, path to compiled proc-macro (.so file).
repository
string
URL to the source repository of the crate.
dep
object
crate
integer
required
Index of a crate in the crates array.
name
string
required
Name as should appear in the (implicit) extern crate name declaration.