cgo-gen

(★ 13)

No description available.

File Explorer

  • .gitignore
  • Cargo.lock
  • Cargo.toml
  • LICENSE
  • README.md

# Use via CDN

jsDelivr

jsDelivr serves any public GitHub repository as a CDN with zero setup. Pick a version and a file to get a ready-to-paste link and snippet.

Command Glossary

Commands referenced in this DOCs, explained below.

🔍

brew install

View Details ▼

Install a Homebrew formula or cask.

brew install {{formula|cask}}

Install a formula/cask:

brew install {{[-s|--build-from-source]}} {{formula}}

Build and install a formula from source (dependencies will still be installed from bottles):

brew install {{[-n|--dry-run]}} {{formula|cask}}

Download the manifest, print what would be installed but don't actually install anything:

🔍

cargo install

View Details ▼

Build and install a Rust binary.

cargo install {{package}}@{{version}}

Install a package from <https://crates.io> (the version is optional - latest by default):

cargo install --git {{repo_url}}

Install a package from the specified Git repository:

cargo install --git {{repo_url}} --{{branch|tag|rev}} {{branch_name|tag|commit_hash}}

Build from the specified branch/tag/commit when installing from a Git repository:

🔍

cargo run

View Details ▼

Run the current Cargo package.
Note: The working directory of the executed binary will be set to the current working directory.

cargo {{[r|run]}}

Run the default binary target:

cargo {{[r|run]}} --bin {{name}}

Run the specified binary:

cargo {{[r|run]}} --example {{name}}

Run the specified example:

🔍

cargo test

View Details ▼

Execute the unit and integration tests of a Rust package.

cargo {{[t|test]}} {{test_name}}

Only run tests containing a specific string in their names:

cargo {{[t|test]}} -- --test-threads {{count}}

Set the number of simultaneous running test cases:

cargo {{[t|test]}} {{[-r|--release]}}

Test artifacts in release mode, with optimizations:

🔍

clang

View Details ▼

Compile C, C++, and Objective-C source files. Can be used as a drop-in replacement for GCC.
Part of LLVM.

clang {{path/to/source1.c path/to/source2.c ...}} {{[-o|--output]}} {{path/to/output_executable}}

Compile multiple source files into an executable:

clang {{path/to/source.c}} -Wall {{[-o|--output]}} {{output_executable}}

Activate output of all errors and warnings:

clang {{path/to/source.c}} -Wall {{[-g|--debug]}} -Og {{[-o|--output]}} {{path/to/output_executable}}

Show common warnings, debug symbols in output, and optimize without affecting debugging:

🔍

apt install

View Details ▼

Install packages for Debian-based distributions.

sudo apt install {{package}}

Install a package, or update it to the latest version:

sudo apt install {{[-V|--verbose-versions]}} {{package}}

Display verbose package version information during installation or update:

🔍

dnf install

View Details ▼

Install packages on Red Hat-based distributions.

sudo dnf {{[in|install]}} {{package1 package2 ...}}

Install packages by name:

sudo dnf {{[in|install]}} {{path/to/file}}

Install a package from a local file:

sudo dnf {{[in|install]}} {{https://example.com/package.rpm}}

Install a package from the internet:

🔍

module

View Details ▼

Modify a users' environment.

module avail

Display available modules:

module avail {{module_name}}

Search for a module by name:

module load {{module_name}}

Load a module:

🔍

pacman -S

View Details ▼

This command is an alias of `pacman --sync`.

tldr pacman sync

View documentation for the original command:

🔍

pkg_add

View Details ▼

Install/update packages in OpenBSD.
See also: `pkg_info`, `pkg_delete`.

pkg_add -u

Update all packages, including dependencies:

pkg_add {{package}}

Install a new package:

pkg_add -l {{path/to/file}}

Install packages from the raw output of `pkg_info`:

🔍

xcode-select

View Details ▼

Switch between different versions of Xcode and the included developer tools.
Also used to update the path to Xcode if it is moved after installation.

xcode-select --install

Install Xcode's command-line tools:

xcode-select --switch {{path/to/Xcode.app/Contents/Developer}}

Select a given path as the active developer directory:

xcode-select --switch {{path/to/Xcode_file.app}}

Select a given Xcode instance and use its developer directory as the active one:

🔍

winget

View Details ▼

Windows Package Manager.

winget {{[add|install]}} {{package}}

Install a package (use `--source` when package is available from multiple sources):

winget {{[rm|uninstall]}} {{package}}

Remove a package (Note: `remove` can also be used instead of `uninstall`):

winget show {{package}}

Display information about a package:

// repository documentation