Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/andir/npins
/ functions
Functions
127 in github.com/andir/npins
⨍
Functions
127
◇
Types & classes
67
↓ 13 callers
Method
remove
(&self, r: &RemoveOpts)
src/main.rs:704
↓ 10 callers
Method
add
(&self)
src/main.rs:50
↓ 10 callers
Method
read_pins
(&self)
src/main.rs:286
↓ 10 callers
Method
update
(&self, _old: Option<&GitRevision>)
libnpins/src/pins/git.rs:464
↓ 9 callers
Function
start_runtime
(future: impl Future<Output = Result<()>>)
src/main.rs:1072
↓ 9 callers
Method
write_pins
(&self, pins: &NixPins)
src/main.rs:302
↓ 6 callers
Method
git_url
Get the URL to the represented Git repository
libnpins/src/pins/git.rs:292
↓ 4 callers
Function
build_client
Helper method to build you a client. TODO make injectable via a configuration mechanism
libnpins/src/lib.rs:27
↓ 4 callers
Function
nix_prefetch_git
( url: impl AsRef<str>, git_ref: impl AsRef<str>, submodules: bool, )
libnpins/src/nix.rs:61
↓ 4 callers
Method
update
(&self, opts: &UpdateOpts)
src/main.rs:477
↓ 3 callers
Method
fetch
(&self, version: &GitRevision)
libnpins/src/pins/git.rs:474
↓ 3 callers
Function
fetch_remote
Convenience wrapper around calling `git ls-remote`
libnpins/src/pins/git.rs:686
↓ 3 callers
Function
get_and_deserialize
Helper method for doing various API calls
libnpins/src/lib.rs:38
↓ 3 callers
Method
is_frozen
(&self)
libnpins/src/lib.rs:215
↓ 3 callers
Function
nix_prefetch_tarball
(url: impl AsRef<str>)
libnpins/src/nix.rs:13
↓ 3 callers
Function
nix_prefetch_url
(url: impl AsRef<str>, unpack: bool)
libnpins/src/nix.rs:17
↓ 3 callers
Method
properties
(&self)
libnpins/src/diff.rs:72
↓ 3 callers
Function
upgrade
Patch the sources.json file to the latest version This operates on a JSON value level
libnpins/src/versions.rs:51
↓ 3 callers
Method
url
Get the url to a tarball of the requested revision
libnpins/src/pins/git.rs:326
↓ 2 callers
Function
check_git_url
The git url to a repo has no defined endpoint in the protocol, and thus may not be routed by all web servers. However, $GIT_REMOTE/info/refs is a vali
libnpins/src/lib.rs:88
↓ 2 callers
Function
check_url
Issue a http GET request to an URL without actually fetching its output, as a quick sanity check for its validity. This is meant as a check on the unh
libnpins/src/lib.rs:61
↓ 2 callers
Function
elide_to_first_line
(input_string: &str)
libnpins/src/lib.rs:246
↓ 2 callers
Function
fetch_branch_head
Get the revision for a branch
libnpins/src/pins/git.rs:762
↓ 2 callers
Method
fetch_default_branch
(self: &FlakePin, prefix: &str)
libnpins/src/flake.rs:140
↓ 2 callers
Function
fetch_ref
Get the commit for a ref
libnpins/src/pins/git.rs:741
↓ 2 callers
Function
fetch_tags
List all tags of a repo
libnpins/src/pins/git.rs:767
↓ 2 callers
Method
freeze
(&self, o: &FreezeOpts)
src/main.rs:726
↓ 2 callers
Function
generic_upgrader
A generic wrapper that updates all pins individually with a provided upgrade function. * This can be used in all cases where only the pin structu
libnpins/src/versions.rs:66
↓ 2 callers
Method
init
(&self, o: &InitOpts)
src/main.rs:318
↓ 2 callers
Function
init_logger
()
libnpins/src/versions.rs:361
↓ 2 callers
Function
nix_prefetch_docker
( image_name: impl AsRef<str>, image_tag: impl AsRef<str>, arch: &Option<String>, image_digest
libnpins/src/nix.rs:142
↓ 2 callers
Method
on_pin_finish
Removes the pin from being progressed and provide writer to print result
src/main.rs:1028
↓ 2 callers
Method
on_pin_start
To be called every time a pin starts processing
src/main.rs:1005
↓ 2 callers
Method
run
(&self)
src/main.rs:244
↓ 2 callers
Function
strip_url
Extract the scheme and host of a domain, stripping the rest
libnpins/src/pins/git.rs:31
↓ 2 callers
Method
update
(&self, old: Option<&GenericVersion>)
libnpins/src/pins/pypi.rs:50
↓ 2 callers
Method
update_in_progress
Update the set of in_progress pins, redrawing it in the process. The closure passed may also print information, which will then be displayed above the
src/main.rs:988
↓ 2 callers
Function
write_diff
(writer: &mut impl Write, name: &str, diff: &[diff::DiffEntry])
src/main.rs:274
↓ 1 callers
Function
diff
Diff two sets of properties The code works best when both sides have the same keys.
libnpins/src/diff.rs:35
↓ 1 callers
Function
fetch_default_branch
(repo: &Url)
libnpins/src/pins/git.rs:775
↓ 1 callers
Function
from_value_versioned
Custom manual deserialize wrapper that checks the version
libnpins/src/versions.rs:15
↓ 1 callers
Method
get_path
(&self, o: &GetPathOpts)
src/main.rs:925
↓ 1 callers
Method
import_flake
(&self, o: &ImportFlakeOpts)
src/main.rs:823
↓ 1 callers
Method
import_niv
(&self, o: &ImportOpts)
src/main.rs:763
↓ 1 callers
Method
is_indirect
(&self)
libnpins/src/flake.rs:62
↓ 1 callers
Function
latest_release
Take an iterator of tags and spit out the latest release
libnpins/src/pins/git.rs:812
↓ 1 callers
Method
must_fetch
Whether we want to force-update the hashes
src/main.rs:40
↓ 1 callers
Function
nix_eval_pin
(lockfile_path: &Path, pin: &str)
libnpins/src/nix.rs:191
↓ 1 callers
Method
release_url
Get the url to a tarball of the requested release
libnpins/src/pins/git.rs:377
↓ 1 callers
Method
should_update
Whether the latest version should be fetched
src/main.rs:31
↓ 1 callers
Method
show
(&self, opts: &ShowOpts)
src/main.rs:373
↓ 1 callers
Function
to_value_versioned
Custom manual serialize wrapper that adds a version field
libnpins/src/versions.rs:38
↓ 1 callers
Method
to_value_versioned
Custom manual serialize wrapper that adds a version field
libnpins/src/lib.rs:172
↓ 1 callers
Method
try_to_pin
(self: FlakePin)
libnpins/src/flake.rs:68
↓ 1 callers
Method
unfreeze
(&self, o: &FreezeOpts)
src/main.rs:744
↓ 1 callers
Method
update
(&self, _old: Option<&ContainerVersion>)
libnpins/src/pins/container.rs:57
↓ 1 callers
Method
upgrade
(&self)
src/main.rs:662
↓ 1 callers
Function
upgrade_v7_pin
v7→v8. This upgrade splits Tarball pins into two types of generic url pins: * - `Tarball { url }` → `UrlPin { url, unpack: true }` * - `Tarball { ur
libnpins/src/versions.rs:302
↓ 1 callers
Method
verify
(&self, opts: &VerifyOpts)
src/main.rs:569
Function
default_artifact_path
()
libnpins/src/pins/channel.rs:13
Method
fetch
(&self, version: &GenericVersion)
libnpins/src/pins/pypi.rs:109
Method
fetch
(&self, version: &ChannelVersion)
libnpins/src/pins/channel.rs:86
Method
fetch
(&self, version: &ContainerVersion)
libnpins/src/pins/container.rs:65
Method
fetch
(&self, _version: &())
libnpins/src/pins/urlpin.rs:45
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
libnpins/src/diff.rs:14
Method
forgejo
(server: Url, owner: impl Into<String>, repo: impl Into<String>)
libnpins/src/pins/git.rs:237
Method
forgejo_from_url
(url: Url)
libnpins/src/pins/git.rs:245
Function
format_command
Formats a command in a shell-safe manner. NOTE: Multi-line components will be elided to their first line!
libnpins/src/lib.rs:264
Method
freeze
(&mut self)
libnpins/src/lib.rs:207
Method
from_json_versioned
Custom manual deserialize wrapper that checks the version
libnpins/src/lib.rs:167
Function
get_github_api_url
()
libnpins/src/pins/git.rs:25
Function
get_github_url
()
libnpins/src/pins/git.rs:21
Method
git
(url: Url)
libnpins/src/pins/git.rs:206
Method
git_auto
Takes in only an URL and tries to find the most specific repository type that matches. Falls back to `Self::Git` For forges that can also be self-hos
libnpins/src/pins/git.rs:139
Method
github
(owner: impl Into<String>, repo: impl Into<String>)
libnpins/src/pins/git.rs:210
Method
github_from_url
Try to create a `GitHub` type repository from a GitHub repository URL. Returns `None` if the URL is in any way.
libnpins/src/pins/git.rs:219
Method
gitlab
(repo_path: String, server: Option<Url>, private_token: Option<String>)
libnpins/src/pins/git.rs:264
Method
gitlab_from_url
Try to create a `GitLab` type repository from a GitLab repository URL (any instance). Returns `None` if the URL is in any way.
libnpins/src/pins/git.rs:275
Method
import
( name: &str, pin: Option<&serde_json::Value>, npins: &mut NixPins,
src/main.rs:776
Method
insert_diffed
(&mut self, value: T)
libnpins/src/diff.rs:94
Method
is_default
(&self)
libnpins/src/lib.rs:219
Function
main
()
src/main.rs:1056
Function
main
()
completions/src/main.rs:6
Method
new
(name: impl Into<String>, artifact: impl Into<String>)
libnpins/src/pins/channel.rs:34
Method
new
(revision: String)
libnpins/src/pins/git.rs:45
Method
new
(write_bottom_line: F)
src/main.rs:977
Method
new_with_nixpkgs
Create a new `NixPins` with a pin `nixpkgs` pointing to the `nixpkgs-unstable` channel
libnpins/src/lib.rs:157
Method
probe_forge
Takes in a URL of unknown forge and tries to determine which forge the hoster is And then parse the url into the according Repository Variant
libnpins/src/pins/git.rs:169
Method
properties
(&self)
libnpins/src/lib.rs:186
Method
properties
(&self)
libnpins/src/pins/pypi.rs:30
Method
properties
(&self)
libnpins/src/pins/channel.rs:25
Method
properties
(&self)
libnpins/src/pins/container.rs:16
Method
properties
(&self)
libnpins/src/pins/git.rs:54
Method
properties
(&self)
libnpins/src/pins/urlpin.rs:27
Method
tag
(tag: impl Into<String>)
libnpins/src/pins/git.rs:802
Function
test_diff
()
libnpins/src/diff.rs:133
Function
test_fetch_branch
()
libnpins/src/pins/git.rs:918
Function
test_fetch_ref
()
libnpins/src/pins/git.rs:985
Function
test_fetch_tags
()
libnpins/src/pins/git.rs:931
Function
test_forgejo_release_update
()
libnpins/src/pins/git.rs:1185
next →
1–100 of 127, ranked by callers