repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/lib.rs
crates/policy/src/lib.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy.rs
crates/policy/src/policy.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/error.rs
crates/policy/src/error.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/utils.rs
crates/policy/src/utils.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/format.rs
crates/policy/src/format.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/service_type.rs
crates/policy/src/service_type.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/arn.rs
crates/policy/src/arn.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/auth/mod.rs
crates/policy/src/auth/mod.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/auth/credentials.rs
crates/policy/src/auth/credentials.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/effect.rs
crates/policy/src/policy/effect.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/variables.rs
crates/policy/src/policy/variables.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/resource.rs
crates/policy/src/policy/resource.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/id.rs
crates/policy/src/policy/id.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/doc.rs
crates/policy/src/policy/doc.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/policy.rs
crates/policy/src/policy/policy.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function.rs
crates/policy/src/policy/function.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/utils.rs
crates/policy/src/policy/utils.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/statement.rs
crates/policy/src/policy/statement.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/opa.rs
crates/policy/src/policy/opa.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/action.rs
crates/policy/src/policy/action.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/principal.rs
crates/policy/src/policy/principal.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/utils/wildcard.rs
crates/policy/src/policy/utils/wildcard.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/utils/path.rs
crates/policy/src/policy/utils/path.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/func.rs
crates/policy/src/policy/function/func.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/key.rs
crates/policy/src/policy/function/key.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/date.rs
crates/policy/src/policy/function/date.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/number.rs
crates/policy/src/policy/function/number.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/string.rs
crates/policy/src/policy/function/string.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/binary.rs
crates/policy/src/policy/function/binary.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/condition.rs
crates/policy/src/policy/function/condition.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/addr.rs
crates/policy/src/policy/function/addr.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/key_name.rs
crates/policy/src/policy/function/key_name.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/src/policy/function/bool_null.rs
crates/policy/src/policy/function/bool_null.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
rustfs/rustfs
https://github.com/rustfs/rustfs/blob/666c0a9a38636eb6653dff7d9c98ff7122601ce2/crates/policy/tests/policy_is_allowed.rs
crates/policy/tests/policy_is_allowed.rs
// Copyright 2024 RustFS Team // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
rust
Apache-2.0
666c0a9a38636eb6653dff7d9c98ff7122601ce2
2026-01-04T15:42:12.458416Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/gleam-bin/build.rs
gleam-bin/build.rs
fn main() { #[cfg(windows)] static_vcruntime::metabuild(); }
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/gleam-bin/src/main.rs
gleam-bin/src/main.rs
pub fn main() { gleam_cli::main(); }
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/reference.rs
language-server/src/reference.rs
use std::collections::{HashMap, HashSet}; use ecow::EcoString; use lsp_types::Location; use gleam_core::{ analyse, ast::{ self, ArgNames, BitArraySize, CustomType, Function, ModuleConstant, Pattern, RecordConstructor, SrcSpan, TypedExpr, TypedModule, visit::Visit, }, build::Located, ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/messages.rs
language-server/src/messages.rs
use camino::Utf8PathBuf; use lsp::{ notification::{DidChangeWatchedFiles, DidOpenTextDocument}, request::GotoDefinition, }; use lsp_types::{ self as lsp, notification::{DidChangeTextDocument, DidCloseTextDocument, DidSaveTextDocument}, request::{ CodeActionRequest, Completion, DocumentSymbol...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/router.rs
language-server/src/router.rs
use gleam_core::{ Error, Result, build::SourceFingerprint, error::{FileIoAction, FileKind}, io::{BeamCompiler, CommandExecutor, FileSystemReader, FileSystemWriter}, paths::ProjectPaths, }; use std::{ collections::{HashMap, hash_map::Entry}, time::SystemTime, }; use camino::{Utf8Path, Utf8Pa...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/engine.rs
language-server/src/engine.rs
use camino::Utf8PathBuf; use ecow::EcoString; use gleam_core::{ Error, Result, Warning, analyse::name::correct_name_case, ast::{ self, Constant, CustomType, DefinitionLocation, ModuleConstant, PatternUnusedArguments, SrcSpan, TypedArg, TypedConstant, TypedExpr, TypedFunction, TypedModule, Ty...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/lib.rs
language-server/src/lib.rs
#![warn( clippy::all, clippy::dbg_macro, clippy::todo, clippy::mem_forget, clippy::filter_map_next, clippy::needless_continue, clippy::needless_borrow, clippy::match_wildcard_for_single_variants, clippy::imprecise_flops, clippy::suboptimal_flops, clippy::lossy_float_literal, ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests.rs
language-server/src/tests.rs
mod action; mod compilation; mod completion; mod definition; mod document_symbols; mod hover; mod reference; mod rename; mod router; mod signature_help; use std::{ collections::{HashMap, HashSet}, sync::{Arc, Mutex}, time::SystemTime, }; use ecow::EcoString; use hexpm::version::{Range, Version}; use cami...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/rename.rs
language-server/src/rename.rs
use std::collections::HashMap; use ecow::EcoString; use lsp_server::ResponseError; use lsp_types::{Range, RenameParams, TextEdit, Url, WorkspaceEdit}; use gleam_core::{ analyse::name, ast::{self, SrcSpan}, build::Module, line_numbers::LineNumbers, reference::ReferenceKind, type_::{ModuleInterf...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/feedback.rs
language-server/src/feedback.rs
use gleam_core::{Error, Warning, diagnostic::Diagnostic}; use std::collections::{HashMap, HashSet}; use camino::Utf8PathBuf; use super::engine::Compilation; #[derive(Debug, Default, PartialEq, Eq)] pub struct Feedback { pub diagnostics: HashMap<Utf8PathBuf, Vec<Diagnostic>>, pub messages: Vec<Diagnostic>, } ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/progress.rs
language-server/src/progress.rs
use debug_ignore::DebugIgnore; use lsp_types::{ InitializeParams, NumberOrString, ProgressParams, ProgressParamsValue, WorkDoneProgress, WorkDoneProgressBegin, WorkDoneProgressCreateParams, WorkDoneProgressEnd, }; const DOWNLOADING_TOKEN: &str = "downloading-dependencies"; pub trait ProgressReporter { fn ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/edits.rs
language-server/src/edits.rs
use ecow::EcoString; use lsp_types::{Position, Range, TextEdit}; use gleam_core::{ ast::{Import, SrcSpan, TypedDefinitions}, build::Module, line_numbers::LineNumbers, }; use super::src_span_to_lsp_range; // Gets the position of the import statement if it's the first definition in the module. pub fn posit...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/files.rs
language-server/src/files.rs
use std::collections::HashSet; use std::time::SystemTime; use debug_ignore::DebugIgnore; use gleam_core::{ Result, error::Error, io::{ BeamCompiler, Command, CommandExecutor, FileSystemReader, FileSystemWriter, ReadDir, Stdio, WrappedReader, memory::InMemoryFileSystem, }, }; use camin...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/server.rs
language-server/src/server.rs
use super::{ DownloadDependencies, MakeLocker, engine::{self, LanguageServerEngine}, feedback::{Feedback, FeedbackBookKeeper}, files::FileSystemProxy, messages::{Message, MessageBuffer, Next, Notification, Request}, progress::ConnectionProgressReporter, router::Router, src_span_to_lsp_ra...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/completer.rs
language-server/src/completer.rs
use std::{collections::HashMap, sync::Arc}; use ecow::EcoString; use itertools::Itertools; use lsp_types::{ CompletionItem, CompletionItemKind, CompletionItemLabelDetails, CompletionTextEdit, Documentation, MarkupContent, MarkupKind, Position, Range, TextDocumentPositionParams, TextEdit, }; use strum::Into...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/signature_help.rs
language-server/src/signature_help.rs
use std::{ collections::{HashMap, HashSet}, sync::Arc, }; use ecow::EcoString; use lsp_types::{ Documentation, MarkupContent, MarkupKind, ParameterInformation, ParameterLabel, SignatureHelp, SignatureInformation, }; use gleam_core::{ ast::{CallArg, ImplicitCallArgOrigin, TypedExpr}, type_::{Fi...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/code_action.rs
language-server/src/code_action.rs
use std::{collections::HashSet, iter, sync::Arc}; use ecow::{EcoString, eco_format}; use gleam_core::{ Error, STDLIB_PACKAGE_NAME, analyse::Inferred, ast::{ self, ArgNames, AssignName, AssignmentKind, BitArraySegmentTruncation, BoundVariable, BoundVariableName, CallArg, CustomType, Function...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/compiler.rs
language-server/src/compiler.rs
use debug_ignore::DebugIgnore; use ecow::EcoString; use itertools::Itertools; use gleam_core::{ Error, Result, Warning, analyse::TargetSupport, build::{self, Mode, Module, NullTelemetry, Outcome, ProjectCompiler}, config::PackageConfig, io::{BeamCompiler, CommandExecutor, FileSystemReader, FileSyst...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/reference.rs
language-server/src/tests/reference.rs
use std::collections::HashMap; use lsp_types::{ PartialResultParams, Position, Range, ReferenceContext, ReferenceParams, TextDocumentPositionParams, WorkDoneProgressParams, }; use super::{TestProject, find_position_of}; fn find_references( tester: &TestProject<'_>, position: Position, ) -> Option<Has...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/router.rs
language-server/src/tests/router.rs
use std::time::SystemTime; use gleam_core::{Error, io::FileSystemWriter, paths::ProjectPaths}; use crate::{files::FileSystemProxy, tests::Action}; use super::LanguageServerTestIO; type Router = crate::router::Router<LanguageServerTestIO, LanguageServerTestIO>; #[test] fn recompile_after_no_changes_does_not_redownl...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/completion.rs
language-server/src/tests/completion.rs
use insta::assert_debug_snapshot; use itertools::Itertools; use lsp_types::{CompletionItem, Position}; use super::*; pub fn show_complete(code: &str, position: Position) -> String { let mut str: String = "".into(); for (line_number, line) in code.lines().enumerate() { let same_line = line_number as u3...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/rename.rs
language-server/src/tests/rename.rs
use std::collections::HashMap; use lsp_types::{ Position, Range, RenameParams, TextDocumentPositionParams, Url, WorkDoneProgressParams, }; use super::{TestProject, find_position_of, hover}; /// Returns the rename range and edit to apply if the rename is valid and can be /// carried out. /// However if the rename...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/hover.rs
language-server/src/tests/hover.rs
use lsp_types::{Hover, HoverParams, Position, Range}; use super::*; fn hover(tester: TestProject<'_>, position: Position) -> Option<Hover> { tester.at(position, |engine, param, _| { let params = HoverParams { text_document_position_params: param, work_done_progress_params: Default:...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/document_symbols.rs
language-server/src/tests/document_symbols.rs
use insta::assert_debug_snapshot; use lsp_types::{DocumentSymbol, DocumentSymbolParams}; use super::*; fn doc_symbols(tester: TestProject<'_>) -> Vec<DocumentSymbol> { tester.at(Position::default(), |engine, param, _| { let params = DocumentSymbolParams { text_document: param.text_document, ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/compilation.rs
language-server/src/tests/compilation.rs
use crate::engine::Compilation; use super::*; #[test] fn compile_please() { let io = LanguageServerTestIO::new(); let mut engine = setup_engine(&io); let response = engine.compile_please(); assert!(response.result.is_ok()); assert!(response.warnings.is_empty()); assert_eq!(response.compilatio...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/definition.rs
language-server/src/tests/definition.rs
use lsp_types::{ GotoDefinitionParams, Location, Position, Range, Url, request::GotoTypeDefinitionParams, }; use super::*; fn definition(tester: &TestProject<'_>, position: Position) -> Option<Location> { tester.at(position, |engine, param, _| { let params = GotoDefinitionParams { text_doc...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/action.rs
language-server/src/tests/action.rs
use itertools::Itertools; use lsp_types::{ CodeActionContext, CodeActionParams, PartialResultParams, Position, Range, Url, WorkDoneProgressParams, }; use super::*; fn code_actions(tester: &TestProject<'_>, range: Range) -> Option<Vec<lsp_types::CodeAction>> { let position = Position { line: 0, ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/language-server/src/tests/signature_help.rs
language-server/src/tests/signature_help.rs
use super::*; use lsp_types::{ ParameterInformation, ParameterLabel, SignatureHelp, SignatureHelpParams, SignatureInformation, }; fn signature_help(tester: TestProject<'_>, position: Position) -> Option<SignatureHelp> { tester.at(position, |engine, param, _| { let params = SignatureHelpParams { ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-wasm/src/lib.rs
compiler-wasm/src/lib.rs
#[cfg(test)] mod tests; mod wasm_filesystem; use camino::Utf8PathBuf; use gleam_core::{ Error, analyse::TargetSupport, build::{ Mode, NullTelemetry, PackageCompiler, StaleTracker, Target, TargetCodegenConfiguration, }, config::PackageConfig, io::{FileSystemReader, FileSystemWriter}, ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-wasm/src/tests.rs
compiler-wasm/src/tests.rs
use super::*; use wasm_bindgen_test::wasm_bindgen_test; #[wasm_bindgen_test] fn test_reset_filesystem() { reset_filesystem(0); assert_eq!(read_file_bytes(0, "hello"), None); write_file_bytes(0, "hello", vec![1, 2, 3].as_slice()); assert_eq!(read_file_bytes(0, "hello"), Some(vec![1, 2, 3])); reset_...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-wasm/src/wasm_filesystem.rs
compiler-wasm/src/wasm_filesystem.rs
use camino::{Utf8Path, Utf8PathBuf}; use gleam_core::{ Error, Result, io::{ BeamCompiler, Command, CommandExecutor, FileSystemReader, FileSystemWriter, ReadDir, Stdio, WrappedReader, memory::InMemoryFileSystem, }, }; use std::collections::HashSet; #[derive(Clone, Debug, Default)] pub struct...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/test-helpers-rs/src/lib.rs
test-helpers-rs/src/lib.rs
use camino::{Utf8Path, Utf8PathBuf}; use gleam_core::{ io::{Content, FileSystemWriter, memory::InMemoryFileSystem}, version::COMPILER_VERSION, }; use itertools::Itertools; use regex::Regex; use std::{collections::HashMap, fmt::Write, sync::LazyLock}; #[derive(Debug)] pub struct TestCompileOutput { pub file...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/config.rs
compiler-cli/src/config.rs
use camino::Utf8PathBuf; use gleam_core::{ config::PackageConfig, error::{Error, FileIoAction, FileKind}, manifest::{Manifest, ManifestPackage, ManifestPackageSource}, paths::ProjectPaths, }; #[derive(Debug, Clone, Copy)] pub enum PackageKind { Dependency, Root, } /// Get the config for a dep...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/publish.rs
compiler-cli/src/publish.rs
use camino::{Utf8Path, Utf8PathBuf}; use ecow::EcoString; use flate2::{Compression, write::GzEncoder}; use gleam_core::{ Error, Result, analyse::TargetSupport, ast::{CallArg, Statement, TypedExpr, TypedFunction}, build::{Codegen, Compile, Mode, Options, Package, Target}, config::{GleamVersion, Packa...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/lib.rs
compiler-cli/src/lib.rs
#![warn( clippy::all, clippy::dbg_macro, clippy::todo, clippy::mem_forget, clippy::use_self, clippy::filter_map_next, clippy::needless_continue, clippy::needless_borrow, clippy::match_wildcard_for_single_variants, clippy::imprecise_flops, clippy::suboptimal_flops, clippy:...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/http.rs
compiler-cli/src/http.rs
use std::convert::TryInto; use std::sync::OnceLock; use async_trait::async_trait; use camino::Utf8PathBuf; use gleam_core::{ Error, Result, error::{FileIoAction, FileKind}, }; use http::{Request, Response}; use reqwest::{Certificate, Client}; use crate::fs; static REQWEST_CLIENT: OnceLock<Client> = OnceLock:...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/fix.rs
compiler-cli/src/fix.rs
use std::rc::Rc; use gleam_core::{ Error, Result, Warning, analyse::TargetSupport, build::{Codegen, Compile, Mode, Options}, error::{FileIoAction, FileKind}, paths::ProjectPaths, type_, warning::VectorWarningEmitterIO, }; use hexpm::version::Version; use crate::{build, cli}; pub fn run(pa...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/fs.rs
compiler-cli/src/fs.rs
use gleam_core::{ Result, Warning, build::{NullTelemetry, Target}, error::{Error, FileIoAction, FileKind, OS, ShellCommandFailureReason, parse_os}, io::{ BeamCompiler, Command, CommandExecutor, Content, DirEntry, FileSystemReader, FileSystemWriter, OutputFile, ReadDir, Stdio, WrappedRead...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/cli.rs
compiler-cli/src/cli.rs
use gleam_core::{ build::Telemetry, error::{Error, StandardIoAction}, manifest::{Changed, ChangedGit, PackageChanges}, }; use hexpm::version::Version; use itertools::Itertools as _; use std::{ io::{IsTerminal, Write}, time::{Duration, Instant}, }; use termcolor::{BufferWriter, Color, ColorChoice, Co...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/panic.rs
compiler-cli/src/panic.rs
#![allow(clippy::unwrap_used)] use std::panic::PanicHookInfo; pub fn add_handler() { std::panic::set_hook(Box::new(move |info: &PanicHookInfo<'_>| { print_compiler_bug_message(info) })); } fn print_compiler_bug_message(info: &PanicHookInfo<'_>) { let message = match ( info.payload().downca...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/hex.rs
compiler-cli/src/hex.rs
mod auth; use crate::{cli, http::HttpClient}; use gleam_core::{ Error, Result, hex::{self, RetirementReason}, io::HttpClient as _, paths::ProjectPaths, }; pub use auth::HexAuthentication; pub fn retire( package: String, version: String, reason: RetirementReason, message: Option<String...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/shell.rs
compiler-cli/src/shell.rs
use gleam_core::{ analyse::TargetSupport, build::{Codegen, Compile, Mode, Options, Target}, error::{Error, ShellCommandFailureReason}, paths::ProjectPaths, }; use std::process::Command; pub fn command(paths: &ProjectPaths) -> Result<(), Error> { // Build project let _ = crate::build::main( ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/compile_package.rs
compiler-cli/src/compile_package.rs
use crate::{ CompilePackage, config, fs::{self, ConsoleWarningEmitter, ProjectIO}, }; use camino::Utf8Path; use ecow::EcoString; use gleam_core::{ Error, Result, build::{ Mode, NullTelemetry, PackageCompiler, StaleTracker, Target, TargetCodegenConfiguration, }, metadata, paths::{self...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/build.rs
compiler-cli/src/build.rs
use std::{rc::Rc, time::Instant}; use gleam_core::{ Result, build::{Built, Codegen, NullTelemetry, Options, ProjectCompiler, Telemetry}, manifest::Manifest, paths::ProjectPaths, warning::WarningEmitterIO, }; use crate::{ build_lock::BuildLock, cli, dependencies, fs::{self, ConsoleWarni...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/lsp.rs
compiler-cli/src/lsp.rs
use crate::{ build_lock::{BuildLock, Guard}, fs::ProjectIO, }; use gleam_core::{ Result, build::{Mode, NullTelemetry, Target}, paths::ProjectPaths, }; use gleam_language_server::{LanguageServer, LockGuard, Locker}; pub fn main() -> Result<()> { tracing::info!("language_server_starting"); i...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/build_lock.rs
compiler-cli/src/build_lock.rs
use camino::Utf8PathBuf; use gleam_core::{ Error, Result, build::{Mode, Target, Telemetry}, error::{FileIoAction, FileKind}, paths::ProjectPaths, }; use strum::IntoEnumIterator; #[derive(Debug)] pub(crate) struct BuildLock { directory: Utf8PathBuf, filename: String, } impl BuildLock { /// ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/format.rs
compiler-cli/src/format.rs
use gleam_core::{ error::{Error, FileIoAction, FileKind, Result, StandardIoAction, Unformatted}, io::Content, io::OutputFile, }; use std::{io::Read, str::FromStr}; use camino::{Utf8Path, Utf8PathBuf}; pub fn run(stdin: bool, check: bool, files: Vec<String>) -> Result<()> { if stdin { process_s...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/run.rs
compiler-cli/src/run.rs
use std::sync::OnceLock; use camino::Utf8PathBuf; use ecow::EcoString; use gleam_core::{ analyse::TargetSupport, build::{Built, Codegen, Compile, Mode, NullTelemetry, Options, Runtime, Target, Telemetry}, config::{DenoFlag, PackageConfig}, error::Error, io::{Command, CommandExecutor, Stdio}, pa...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/owner.rs
compiler-cli/src/owner.rs
use crate::{cli, http::HttpClient}; use gleam_core::{Result, hex}; pub fn transfer(package: String, new_owner_username_or_email: String) -> Result<()> { println!( "Transferring ownership of this package will remove all current owners and make {new_owner_username_or_email} its new owner. Do you wish to tran...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/export.rs
compiler-cli/src/export.rs
use camino::Utf8PathBuf; use gleam_core::{ Result, analyse::TargetSupport, build::{Codegen, Compile, Mode, Options, Target}, paths::ProjectPaths, }; static ENTRYPOINT_FILENAME_POWERSHELL: &str = "entrypoint.ps1"; static ENTRYPOINT_FILENAME_POSIX_SHELL: &str = "entrypoint.sh"; static ENTRYPOINT_TEMPLAT...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/dependencies.rs
compiler-cli/src/dependencies.rs
mod dependency_manager; use std::{ cell::RefCell, collections::{HashMap, HashSet}, io::ErrorKind, process::Command, rc::Rc, time::Instant, }; use camino::{Utf8Path, Utf8PathBuf}; use ecow::{EcoString, eco_format}; use flate2::read::GzDecoder; use gleam_core::{ Error, Result, build::{Mo...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/add.rs
compiler-cli/src/add.rs
use camino::{Utf8Path, Utf8PathBuf}; use gleam_core::{ Error, Result, error::{FileIoAction, FileKind}, paths::ProjectPaths, }; use crate::{ cli, dependencies::{self, parse_gleam_add_specifier}, fs, }; pub fn command(paths: &ProjectPaths, packages_to_add: Vec<String>, dev: bool) -> Result<()> ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/docs.rs
compiler-cli/src/docs.rs
use std::{ collections::HashMap, time::{Instant, SystemTime}, }; use camino::{Utf8Path, Utf8PathBuf}; use ecow::EcoString; use crate::{cli, fs::ProjectIO, http::HttpClient}; use gleam_core::{ Result, analyse::TargetSupport, build::{Codegen, Compile, Mode, Options, Package, Target}, config::{Do...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/remove.rs
compiler-cli/src/remove.rs
use gleam_core::{ Error, Result, error::{FileIoAction, FileKind}, paths::ProjectPaths, }; use crate::{cli, fs}; pub fn command(paths: &ProjectPaths, packages: Vec<String>) -> Result<()> { // Read gleam.toml so we can remove deps from it let root_config = paths.root_config(); let mut toml = fs:...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/text_layout.rs
compiler-cli/src/text_layout.rs
use ecow::EcoString; /// Generates a string delimeted table with 2 spaces between each column, columns padded with /// enough spaces to be aligned, and hyphens under the headers (excluding the final column of each /// row). Rows should have the right number of columns. /// /// ## Example /// /// ```txt /// Package Cu...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/beam_compiler.rs
compiler-cli/src/beam_compiler.rs
use gleam_core::{ Result, error::{Error, ShellCommandFailureReason}, io::{FileSystemWriter, Stdio}, paths, }; use crate::fs::get_os; use std::{ collections::HashSet, io::{self, BufRead, BufReader, Write}, process::{Child, ChildStdin, ChildStdout}, }; use camino::{Utf8Path, Utf8PathBuf}; u...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/new.rs
compiler-cli/src/new.rs
use camino::{Utf8Path, Utf8PathBuf}; use clap::ValueEnum; use gleam_core::{ Result, erlang, error, error::{Error, FileIoAction, FileKind, InvalidProjectNameReason}, parse, }; use serde::{Deserialize, Serialize}; use std::fs::File; use std::{env, io::Write}; use strum::{Display, EnumIter, EnumString, IntoEnu...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/hex/auth.rs
compiler-cli/src/hex/auth.rs
use crate::{cli, fs::ConsoleWarningEmitter, http::HttpClient}; use gleam_core::{ Error, Result, Warning, encryption, hex, paths::global_hexpm_credentials_path, warning::{DeprecatedEnvironmentVariable, WarningEmitter}, }; use std::{rc::Rc, time::SystemTime}; pub const USER_PROMPT: &str = "https://hex.pm use...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/new/tests.rs
compiler-cli/src/new/tests.rs
use std::path::PathBuf; use camino::{Utf8Path, Utf8PathBuf}; use gleam_core::Error; #[test] fn new() { let tmp = tempfile::tempdir().unwrap(); let path = Utf8PathBuf::from_path_buf(tmp.path().join("my_project")).expect("Non Utf8 Path"); let creator = super::Creator::new( super::NewOptions { ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/dependencies/tests.rs
compiler-cli/src/dependencies/tests.rs
use std::collections::HashMap; use camino::{Utf8Path, Utf8PathBuf}; use ecow::EcoString; use hexpm::version::Version; use pretty_assertions::assert_eq; use gleam_core::{ Error, build::Runtime, config::{DenoConfig, DenoFlag, Docs, ErlangConfig, JavaScriptConfig}, manifest::{Base16Checksum, Manifest, Ma...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
true
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/dependencies/dependency_manager.rs
compiler-cli/src/dependencies/dependency_manager.rs
use ecow::EcoString; use futures::future; use gleam_core::{ Error, Result, build::{Mode, Telemetry}, config::PackageConfig, dependency, manifest::{Manifest, ManifestPackageSource, PackageChanges, Resolved}, paths::ProjectPaths, requirement::Requirement, }; use std::collections::HashMap; use...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/compiler-cli/src/fs/tests.rs
compiler-cli/src/fs/tests.rs
use camino::Utf8Path; use itertools::Itertools; #[test] fn is_inside_git_work_tree_ok() { let tmp_dir = tempfile::tempdir().unwrap(); let path = Utf8Path::from_path(tmp_dir.path()).expect("Non Utf-8 Path"); assert!(!super::is_inside_git_work_tree(path).unwrap()); assert_eq!(super::git_init(path), Ok((...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/test-output/src/lib.rs
test-output/src/lib.rs
#[cfg(test)] mod tests;
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/test-output/src/tests.rs
test-output/src/tests.rs
#[cfg(test)] mod echo;
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/test-output/src/tests/echo.rs
test-output/src/tests/echo.rs
use std::{io::Read, process::Stdio}; use camino::{Utf8Path, Utf8PathBuf}; use gleam_core::{ build::{Runtime, Target}, io::Command, paths::ProjectPaths, }; use gleam_cli::{ fs, run::{self, Which}, }; fn run_and_produce_pretty_snapshot( target: Option<Target>, runtime: Option<Runtime>, ...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false
gleam-lang/gleam
https://github.com/gleam-lang/gleam/blob/f424547f02e621f1c5f28749786e05eda7feb098/test-project-compiler/build.rs
test-project-compiler/build.rs
use std::path::PathBuf; pub fn main() { println!("cargo:rerun-if-changed=cases"); let mut module = "//! This file is generated by build.rs //! Do not edit it directly, instead add new test cases to ./cases use gleam_core::build::Mode; " .to_string(); let cases = PathBuf::from("./cases"); let mu...
rust
Apache-2.0
f424547f02e621f1c5f28749786e05eda7feb098
2026-01-04T15:40:22.554517Z
false