about summary refs log tree commit diff
path: root/doc/languages-frameworks/rust.section.md
Commit message (Collapse)AuthorAge
* Merge staging-next into stagingFrederik Rietdijk2020-06-05
|\
| * buildRustPackage: add documentation on how to create cargo.lock patchesJörg Thalheim2020-06-05
| |
* | rust: improve docsMaximilian Bosch2020-05-31
| | | | | | | | | | Co-authored-by: cole-h <cole.e.helbling@outlook.com> Co-authored-by: asymmetric <lorenzo@mailbox.org>
* | rust*: add docs for testing packagesMaximilian Bosch2020-05-24
|/ | | | See also https://discourse.nixos.org/t/rust-build-speed-improvements/7225
* rust: remove legacy cargo fetcherBenjamin Hipple2020-03-18
| | | | | | | We have now migrated every single Rust package in NixPkgs! This deletes the legacy fetcher, which is now unused. Resolves #79975
* rustPlatform.fetchCargo: handle custom Cargo.lock patchfiles with validationBenjamin Hipple2020-02-28
| | | | | | | | | | Previously, we would asssert that the lockfiles are consistent during the unpackPhase, but if the pkg has a patch for the lockfile itself then we must wait until the patchPhase is complete to check. This also removes an implicity dependency on the src attribute coming from `fetchzip` / `fetchFromGitHub`, which happens to name the source directory "source". Now we glob for it, so different fetchers will work consistently.
* manual: use quoted homepage urlsJonathan Ringer2020-02-16
|
* rust: update docs on legacyCargoFetcher; remove unnecessary defaultsBenjamin Hipple2020-02-15
| | | | | As mentioned in #79975, the default on `legacyCargoFetcher` if left unspecified is now `false`.
* fetchcargo: use flat tar.gz file for vendored src instead of recursive hash dirBenjamin Hipple2020-02-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | This has several advantages: 1. It takes up less space on disk in-between builds in the nix store. 2. It uses less space in the binary cache for vendor derivation packages. 3. It uses less network traffic downloading from the binary cache. 4. It plays nicely with hashed mirrors like tarballs.nixos.org, which only substitute --flat hashes on single files (not recursive directory hashes). 5. It's consistent with how simple `fetchurl` src derivations work. 6. It provides a stronger abstraction between input src-package and output package, e.g., it's harder to accidentally depend on the src derivation at runtime by referencing something like `${src}/etc/index.html`. Likewise, in the store it's harder to get confused with something that is just there as a build-time dependency vs. a runtime dependency, since the build-time src dependencies are tarred up. Disadvantages are: 1. It takes slightly longer to untar at the start of a build. As currently implemented, this attaches the compacted vendor.tar.gz feature as a rider on `verifyCargoDeps`, since both of them are relatively newly implemented behavior that change the `cargoSha256`. If this PR is accepted, I will push forward the remaining rust packages with a series of treewide PRs to update the `cargoSha256`s.
* doc: Remove comment advising to install build tooling system-wideadisbladis2020-01-23
| | | | | We should not encourage installing build-tooling system-wide but instead promote nix-shell.
* doc: update rust example on buildRustPackage (#77534)Benjamin Hipple2020-01-12
| | | | The example in the manual was out of date and didn't use the newer `pname` convention, which simplifies the fetch call.
* documentation: drop double 'the'Arnout Engelen2019-11-09
|
* Merge pull request #71899 from decentriq/aslemmer/build-rust-package-add-targetJörg Thalheim2019-11-01
|\ | | | | build-support/rust: Add target option
| * buildRustPackage: Add readme comment on target optionexfalso2019-11-01
| |
* | doc: organize chapters into parts, and reduce toc depthFrederik Rietdijk2019-10-20
|/ | | | | | | | | Reorganize the chapters into parts and reduce the TOC depth to make the TOC useful again. The top-level TOC is very brief, but that is fine because every part will have its own TOC. Section titles of languages/frameworks are also simplified to just the name of the language/framework.
* buildRustPackage: add verifyCargoDeps optionzimbatm2019-09-30
| | | | | | | | | | | One issue with cargoSha256 is that it's hard to detect when it needs to be updated or not. It's possible to upgrade a package and forget to update cargoSha256 and run with old versions of the program or libraries. This commit introduces `verifyCargoDeps` which, when enabled, will check that the Cargo.lock is not out of date in the cargoDeps by comparing it with the package source.
* doc: update nixpkgs-mozilla revLorenzo Manacorda2019-06-08
| | | | The previous one didn't work, returning a TOML parse error.
* docs: Small change to Rust guide to be more cross friendlyJohn Ericson2018-12-18
|
* rust.section.md: remove nixcrate referenceworldofpeace2018-09-15
| | | nixcrate is deprecated
* treewide: Remove usage of remaining redundant platform compatability stuffJohn Ericson2018-08-30
| | | | | Want to get this out of here for 18.09, so it can be deprecated thereafter.
* buildRustPackage: add documentation about cargoPatchesLéo Gaspard2018-08-14
|
* docs: extend rust docs (#35587)Garrett Berg2018-03-28
| | | | | | | - Add example for setting up nix-shell, improve rust docs - Rust docs: add gcc rust dependencies and fix carnix commands - Fix a typo with the carnix command.
* Move all nixpkgs doc files in to the doc directoryGraham Christensen2018-03-25
This makes a makefile-driven developer workflow nicer.