Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion crates/uv-macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,15 @@ pub fn attribute_env_vars_metadata(_attr: TokenStream, input: TokenStream) -> To
.iter()
.filter_map(|item| match item {
ImplItem::Const(item) if !is_hidden(&item.attrs) => {
let name = item.ident.to_string();
let doc = get_doc_comment(&item.attrs);
let syn::Expr::Lit(syn::ExprLit {
lit: syn::Lit::Str(lit),
..
}) = &item.expr
else {
return None;
};
let name = lit.value();
Some((name, doc))
}
ImplItem::Fn(item) if !is_hidden(&item.attrs) => {
Expand Down
8 changes: 4 additions & 4 deletions docs/reference/environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -635,10 +635,6 @@ Used to determine the name of the active Conda environment.

Used to detect the path of an active Conda environment.

### `CONDA_ROOT`

Used to determine the root install path of Conda.

### `FISH_VERSION`

Used to detect Fish shell usage.
Expand Down Expand Up @@ -889,3 +885,7 @@ Used to determine which `.zshenv` to use when Zsh is being used.

Used to detect Zsh shell usage.

### `_CONDA_ROOT`

Used to determine the root install path of Conda.

Loading