\n\nview details
\n\n- **Uncategorized**\n - Prepare changelogs prior to release ([`12b5caf`](https://togithub.com/Byron/gitoxide/commit/12b5caf))\n - Bump `gix-transport` version to prevent it from being picked up. ([`8011c73`](https://togithub.com/Byron/gitoxide/commit/8011c73))\n\n \n\n### [`v0.55.1`](https://togithub.com/Byron/gitoxide/releases/tag/gix-v0.55.1): gix v0.55.1\n\n[Compare Source](https://togithub.com/Byron/gitoxide/compare/gix-v0.55.0...gix-v0.55.1)\n\n##### New Features\n\n- Add `take_data()` to all primitive object types.\n That is the new, most direct way to obtain its data which otherwise\n is immovable.\n- Add `detach()` and `detached()` too all object types.\n That way, the detachment API is symmetric.\n It's required to overcome the `Drop` implementation of each of these types\n which prevents moving data out of the object (easily).\n\n##### Commit Statistics\n\n- 2 commits contributed to the release.\n- 2 commits were understood as [conventional](https://www.conventionalcommits.org).\n- 0 issues like '(#ID)' were seen in commit messages\n\n##### Commit Details\n\n\n\nview details
\n\n- **Uncategorized**\n - Add `take_data()` to all primitive object types. ([`5732303`](https://togithub.com/Byron/gitoxide/commit/5732303))\n - Add `detach()` and `detached()` too all object types. ([`88f2e6c`](https://togithub.com/Byron/gitoxide/commit/88f2e6c))\n\n \n\n### [`v0.55.0`](https://togithub.com/Byron/gitoxide/releases/tag/gix-v0.55.0): gix v0.55.0\n\n[Compare Source](https://togithub.com/Byron/gitoxide/compare/gix-v0.54.1...gix-v0.55.0)\n\nThis release contains a complete rewrite of the internal url parsing logic, the public interface stays mostly the same however. Gitoxide will now be\nmore correct, interpreting more urls the same way Git does. Improvements include the added support for ssh aliases (`github:byron/gitoxide` has previously\nbeen parsed as local path), adjustments around the interpretation of colons in file names (previously we disallowed colons that were not followed up\nwith a slash character) and some smaller changes that bring the interpretation of file urls more in line with Git's implementation. Additionally, the\nerror types have been adjusted to print a more comprehensive message by default, making sure they stay helpful even when bubbled up through multiple abstraction\nlayers.\n\nThere are still many (edge) cases in Git's url parsing implementation which are not handled correctly by Gitoxide. If you notice any such deviation please\nopen a new issue to help us making Gitoxide even more correct.\n\n##### Other\n\n- inform about the absence of strict hash verification and strict object creation.\n Those are present in `git2` and enabled by default, and `gitoxde` definitely\n wants to do the same at some point.\n\n##### New Features\n\n- add `Repository::head_tree()` to more easily obtain the current tree.\n- Add `Repository::has_object()` as a high-level alternative.\n Previously, one would have to call `repo.objects.contains()`, which\n is fine, but this method is necessary for symmetry of the API\n and one shouldn't have to drop down a level to do this.\n\n This method also knows empty trees as special case.\n- add `Object::try_into_blob()` and `into_blob()` and `Repository::empty_blob()`\n This way it's easier to assert that an object is actually a blob.\n- add `Repository::index_or_empty()`.\n This is useful if a missing index should mean it's empty.\n\n##### Commit Statistics\n\n- 14 commits contributed to the release over the course of 16 calendar days.\n- 17 days passed between releases.\n- 5 commits were understood as [conventional](https://www.conventionalcommits.org).\n- 0 issues like '(#ID)' were seen in commit messages\n\n##### Thanks Clippy\n\n[Clippy](https://togithub.com/rust-lang/rust-clippy) helped 1 time to make code idiomatic.\n\n##### Commit Details\n\n\n\nview details
\n\n- **Uncategorized**\n - Release gix-hash v0.13.1, gix-features v0.36.0, gix-actor v0.28.0, gix-object v0.38.0, gix-glob v0.14.0, gix-attributes v0.20.0, gix-command v0.2.10, gix-filter v0.6.0, gix-fs v0.8.0, gix-commitgraph v0.22.0, gix-revwalk v0.9.0, gix-traverse v0.34.0, gix-worktree-stream v0.6.0, gix-archive v0.6.0, gix-tempfile v11.0.0, gix-lock v11.0.0, gix-ref v0.38.0, gix-config v0.31.0, gix-url v0.25.0, gix-credentials v0.21.0, gix-diff v0.37.0, gix-discover v0.26.0, gix-ignore v0.9.0, gix-index v0.26.0, gix-mailmap v0.20.0, gix-negotiate v0.9.0, gix-pack v0.44.0, gix-odb v0.54.0, gix-pathspec v0.4.0, gix-packetline v0.16.7, gix-transport v0.37.0, gix-protocol v0.41.0, gix-revision v0.23.0, gix-refspec v0.19.0, gix-worktree v0.27.0, gix-status v0.2.0, gix-submodule v0.5.0, gix-worktree-state v0.4.0, gix v0.55.0, safety bump 37 crates ([`68e5432`](https://togithub.com/Byron/gitoxide/commit/68e5432))\n - Prepare changelogs prior to release ([`1347a54`](https://togithub.com/Byron/gitoxide/commit/1347a54))\n - Merge branch 'improvements' ([`429e7b2`](https://togithub.com/Byron/gitoxide/commit/429e7b2))\n - Inform about the absence of strict hash verification and strict object creation. ([`f478a37`](https://togithub.com/Byron/gitoxide/commit/f478a37))\n - Add `Repository::head_tree()` to more easily obtain the current tree. ([`c79a7da`](https://togithub.com/Byron/gitoxide/commit/c79a7da))\n - Add `Repository::has_object()` as a high-level alternative. ([`787a9aa`](https://togithub.com/Byron/gitoxide/commit/787a9aa))\n - Add `Object::try_into_blob()` and `into_blob()` and `Repository::empty_blob()` ([`3cec935`](https://togithub.com/Byron/gitoxide/commit/3cec935))\n - Thanks clippy ([`345712d`](https://togithub.com/Byron/gitoxide/commit/345712d))\n - Merge branch 'reset' ([`b842691`](https://togithub.com/Byron/gitoxide/commit/b842691))\n - Trust Ctime again ([`f929d42`](https://togithub.com/Byron/gitoxide/commit/f929d42))\n - Add `Repository::index_or_empty()`. ([`7d9ecdd`](https://togithub.com/Byron/gitoxide/commit/7d9ecdd))\n - Adapt to changes in `gix-status` ([`54fb7c2`](https://togithub.com/Byron/gitoxide/commit/54fb7c2))\n - Merge branch 'gix-url-parse-rewrite' ([`a12e4a8`](https://togithub.com/Byron/gitoxide/commit/a12e4a8))\n - Update changelogs ([`4349353`](https://togithub.com/Byron/gitoxide/commit/4349353))\n\n \n\n\n\n---\n\n### Configuration\n\n📅 **Schedule**: Branch creation - \"before 5am on the first day of the month\" (UTC), Automerge - At any time (no schedule defined).\n\n🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.\n\n♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.\n\n🔕 **Ignore**: Close this PR and you won't be reminded about this update again.\n\n---\n\n - [ ] If you want to rebase/retry this PR, check this box\n\n---\n\nThis PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo).\n\n","sha":"23eb492cf920ce051abfc56bbaf838514dc8365c","created_at":"2023-11-01 22:06","time_from_now":"1年前","created_at_unix":1698847562}},{"name":"LICENSE-APACHE","path":"LICENSE-APACHE","sha":"c98d27d4f32d56e56f13de73a08ab44b2947ccf5","type":"file","submodule_git_url":null,"size":10860,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"HTTPS all the things\n","sha":"0c3851c01706fdf3587c4be9b94e42069b7ad70b","created_at":"2019-01-31 04:34","time_from_now":"6年前","created_at_unix":1548880477}},{"name":"LICENSE-MIT","path":"LICENSE-MIT","sha":"31aa79387f27e730e33d871925e152e35e428031","type":"file","submodule_git_url":null,"size":1023,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"Remove inaccurate (misattributed) copyright notices\n\nLICENSE-MIT and one source file contain inaccurate copyright notices of\nthe form \"Copyright (c) (years) The Rust Project Developers\", which\nimplies that an entity called \"The Rust Project Developers\" holds\ncopyrights in Rust. Rust contributors retain their copyrights, and do\nnot assign them to anyone by contributing. Remove the inaccurate\nnotices.\n","sha":"d82153017d599e89d6d2aeeeb4ca0022ea6f8382","created_at":"2017-07-27 08:19","time_from_now":"7年前","created_at_unix":1501114764}},{"name":"LICENSE-THIRD-PARTY","path":"LICENSE-THIRD-PARTY","sha":"8f83ab502aa49786ed9b35d3cbccc7f700e5fe44","type":"file","submodule_git_url":null,"size":68430,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"HTTPS all the things\n","sha":"0c3851c01706fdf3587c4be9b94e42069b7ad70b","created_at":"2019-01-31 04:34","time_from_now":"6年前","created_at_unix":1548880477}},{"name":"README.md","path":"README.md","sha":"1d806b978643ef19734550070a3d2e12a223d9eb","type":"file","submodule_git_url":null,"size":4507,"is_readme_file":true,"content":null,"target":null,"commit":{"message":"doc: point to nightly cargo doc\n\nNightly doc contains more information and rationale for each item.\nIt's a better fit for those want to extend Cargo's functionality.\n","sha":"50b4d57aa4a8fab1d1f336abf49d5d8a19f16fcc","created_at":"2023-06-07 17:09","time_from_now":"2年前","created_at_unix":1686128968}},{"name":"build.rs","path":"build.rs","sha":"752221f8cdc162b9b9aaa321a6933a84e6a3ddea","type":"file","submodule_git_url":null,"size":2301,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"clippy: allow usages of `std::env::var` family by exceptions\n\nSee comments above for each usage about why it is allowed.\n","sha":"5ccca80da8418dff0c5ff3fdb93161d9dacea7ae","created_at":"2023-03-17 19:22","time_from_now":"2年前","created_at_unix":1679052179}},{"name":"clippy.toml","path":"clippy.toml","sha":"f50e365881975f716a7ce97f0ee35ca4d7011405","type":"file","submodule_git_url":null,"size":498,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"lint: follow convention no capitcal letter in first word\n","sha":"4cc9208b2542d92adfd36563518f6345ff0dbb8e","created_at":"2023-09-12 09:16","time_from_now":"1年前","created_at_unix":1694481396}},{"name":"deny.toml","path":"deny.toml","sha":"746113f3caeea1879136d58be801b4c39d5fbd48","type":"file","submodule_git_url":null,"size":12367,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"Fix some typos\n\nSigned-off-by: cui fliter \n","sha":"c8f4d234bbb9b879c8d1177a9495e169b6417ddc","created_at":"2023-09-24 23:10","time_from_now":"1年前","created_at_unix":1695568207}},{"name":"publish.py","path":"publish.py","sha":"87ea0e89657c9ec07bc9790ca53078c2a8f850a7","type":"file","submodule_git_url":null,"size":1618,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"publish.py: Remove obsolete `sleep()` calls\n\n`cargo` waits for the package to appear in the index by default these days, so these obsolete extra `sleep()` calls are just making the publish process slower now without any advantages.\n","sha":"49125e9ad86b4a3c91be161f4e4dde46e1baa76f","created_at":"2023-09-18 23:40","time_from_now":"1年前","created_at_unix":1695051628}},{"name":"triagebot.toml","path":"triagebot.toml","sha":"cdf1090a10e7bdacdecac942999877b507cb870e","type":"file","submodule_git_url":null,"size":9507,"is_readme_file":null,"content":null,"target":null,"commit":{"message":"fix: Report more detailed semver errors\n\nFor `cargo install` we'll now show a more specific parse error for\nsemver, much like other parts of cargo.\n\nThis came out of my work on #12801. I was looking at what might be\nappropriate to put in a `cargo-util-semver` crate and realized we have\nthe `ToSemver` trait that exists but doesn't do much, so I dropped it.","sha":"e70e310ce0134a2baff8292bd4e86c4a1dac564c","created_at":"2023-11-07 05:24","time_from_now":"1年前","created_at_unix":1699305872}}]},"projectMenu":[{"menu_name":"home"},{"menu_name":"code"},{"menu_name":"issues"},{"menu_name":"pulls"},{"menu_name":"devops"},{"menu_name":"versions"},{"menu_name":"wiki"},{"menu_name":"resources"},{"menu_name":"activity"}],"projectReadMe":"%7B%22type%22%3A%22file%22%2C%22encoding%22%3A%22base64%22%2C%22size%22%3A4507%2C%22name%22%3A%22README.md%22%2C%22path%22%3A%22README.md%22%2C%22content%22%3A%22%23%20Cargo%5Cn%5CnCargo%20downloads%20your%20Rust%20project%E2%80%99s%20dependencies%20and%20compiles%20your%20project.%5Cn%5Cn**To%20start%20using%20Cargo**%2C%20learn%20more%20at%20%5BThe%20Cargo%20Book%5D.%5Cn%5Cn**To%20start%20developing%20Cargo%20itself**%2C%20read%20the%20%5BCargo%20Contributor%20Guide%5D.%5Cn%5Cn%5BThe%20Cargo%20Book%5D%3A%20https%3A%2F%2Fdoc.rust-lang.org%2Fcargo%2F%5Cn%5BCargo%20Contributor%20Guide%5D%3A%20https%3A%2F%2Frust-lang.github.io%2Fcargo%2Fcontrib%2F%5Cn%5Cn%23%23%20Code%20Status%5Cn%5Cn%5B!%5BCI%5D(https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Factions%2Fworkflows%2Fmain.yml%2Fbadge.svg%3Fbranch%3Dauto-cargo)%5D(https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Factions%2Fworkflows%2Fmain.yml)%5Cn%5CnCode%20documentation%3A%20%3Chttps%3A%2F%2Fdoc.rust-lang.org%2Fnightly%2Fnightly-rustc%2Fcargo%2F%3E%5Cn%5Cn%23%23%20Installing%20Cargo%5Cn%5CnCargo%20is%20distributed%20by%20default%20with%20Rust%2C%20so%20if%20you've%20got%20%60rustc%60%20installed%5Cnlocally%20you%20probably%20also%20have%20%60cargo%60%20installed%20locally.%5Cn%5Cn%23%23%20Compiling%20from%20Source%5Cn%5Cn%23%23%23%20Requirements%5Cn%5CnCargo%20requires%20the%20following%20tools%20and%20packages%20to%20build%3A%5Cn%5Cn*%20%60cargo%60%20and%20%60rustc%60%5Cn*%20A%20C%20compiler%20%5Bfor%20your%20platform%5D(https%3A%2F%2Fgithub.com%2Frust-lang%2Fcc-rs%23compile-time-requirements)%5Cn*%20%60git%60%20(to%20clone%20this%20repository)%5Cn%5Cn**Other%20requirements%3A**%5Cn%5CnThe%20following%20are%20optional%20based%20on%20your%20platform%20and%20needs.%5Cn%5Cn*%20%60pkg-config%60%20%E2%80%94%20This%20is%20used%20to%20help%20locate%20system%20packages%2C%20such%20as%20%60libssl%60%20headers%2Flibraries.%20This%20may%20not%20be%20required%20in%20all%20cases%2C%20such%20as%20using%20vendored%20OpenSSL%2C%20or%20on%20Windows.%5Cn*%20OpenSSL%20%E2%80%94%20Only%20needed%20on%20Unix-like%20systems%20and%20only%20if%20the%20%60vendored-openssl%60%20Cargo%20feature%20is%20not%20used.%5Cn%5Cn%20%20This%20requires%20the%20development%20headers%2C%20which%20can%20be%20obtained%20from%20the%20%60libssl-dev%60%20package%20on%20Ubuntu%20or%20%60openssl-devel%60%20with%20apk%20or%20yum%20or%20the%20%60openssl%60%20package%20from%20Homebrew%20on%20macOS.%5Cn%5Cn%20%20If%20using%20the%20%60vendored-openssl%60%20Cargo%20feature%2C%20then%20a%20static%20copy%20of%20OpenSSL%20will%20be%20built%20from%20source%20instead%20of%20using%20the%20system%20OpenSSL.%5Cn%20%20This%20may%20require%20additional%20tools%20such%20as%20%60perl%60%20and%20%60make%60.%5Cn%5Cn%20%20On%20macOS%2C%20common%20installation%20directories%20from%20Homebrew%2C%20MacPorts%2C%20or%20pkgsrc%20will%20be%20checked.%20Otherwise%20it%20will%20fall%20back%20to%20%60pkg-config%60.%5Cn%5Cn%20%20On%20Windows%2C%20the%20system-provided%20Schannel%20will%20be%20used%20instead.%5Cn%5Cn%20%20LibreSSL%20is%20also%20supported.%5Cn%5Cn**Optional%20system%20libraries%3A**%5Cn%5CnThe%20build%20will%20automatically%20use%20vendored%20versions%20of%20the%20following%20libraries.%20However%2C%20if%20they%20are%20provided%20by%20the%20system%20and%20can%20be%20found%20with%20%60pkg-config%60%2C%20then%20the%20system%20libraries%20will%20be%20used%20instead%3A%5Cn%5Cn*%20%5B%60libcurl%60%5D(https%3A%2F%2Fcurl.se%2Flibcurl%2F)%20%E2%80%94%20Used%20for%20network%20transfers.%5Cn*%20%5B%60libgit2%60%5D(https%3A%2F%2Flibgit2.org%2F)%20%E2%80%94%20Used%20for%20fetching%20git%20dependencies.%5Cn*%20%5B%60libssh2%60%5D(https%3A%2F%2Fwww.libssh2.org%2F)%20%E2%80%94%20Used%20for%20SSH%20access%20to%20git%20repositories.%5Cn*%20%5B%60libz%60%5D(https%3A%2F%2Fzlib.net%2F)%20(aka%20zlib)%20%E2%80%94%20Used%20for%20data%20compression.%5Cn%5CnIt%20is%20recommended%20to%20use%20the%20vendored%20versions%20as%20they%20are%20the%20versions%20that%20are%20tested%20to%20work%20with%20Cargo.%5Cn%5Cn%23%23%23%20Compiling%5Cn%5CnFirst%2C%20you'll%20want%20to%20check%20out%20this%20repository%5Cn%5Cn%60%60%60%5Cngit%20clone%20https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo.git%5Cncd%20cargo%5Cn%60%60%60%5Cn%5CnWith%20%60cargo%60%20already%20installed%2C%20you%20can%20simply%20run%3A%5Cn%5Cn%60%60%60%5Cncargo%20build%20--release%5Cn%60%60%60%5Cn%5Cn%23%23%20Adding%20new%20subcommands%20to%20Cargo%5Cn%5CnCargo%20is%20designed%20to%20be%20extensible%20with%20new%20subcommands%20without%20having%20to%20modify%5CnCargo%20itself.%20See%20%5Bthe%20Wiki%20page%5D%5Bthird-party-subcommands%5D%20for%20more%20details%20and%5Cna%20list%20of%20known%20community-developed%20subcommands.%5Cn%5Cn%5Bthird-party-subcommands%5D%3A%20https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Fwiki%2FThird-party-cargo-subcommands%5Cn%5Cn%5Cn%23%23%20Releases%5Cn%5CnCargo%20releases%20coincide%20with%20Rust%20releases.%5CnHigh%20level%20release%20notes%20are%20available%20as%20part%20of%20%5BRust's%20release%20notes%5D%5Brel%5D.%5CnDetailed%20release%20notes%20are%20available%20in%20this%20repo%20at%20%5BCHANGELOG.md%5D.%5Cn%5Cn%5Brel%5D%3A%20https%3A%2F%2Fgithub.com%2Frust-lang%2Frust%2Fblob%2Fmaster%2FRELEASES.md%5Cn%5BCHANGELOG.md%5D%3A%20CHANGELOG.md%5Cn%5Cn%23%23%20Reporting%20issues%5Cn%5CnFound%20a%20bug%3F%20We'd%20love%20to%20know%20about%20it!%5Cn%5CnPlease%20report%20all%20issues%20on%20the%20GitHub%20%5Bissue%20tracker%5D%5Bissues%5D.%5Cn%5Cn%5Bissues%5D%3A%20https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Fissues%5Cn%5Cn%23%23%20Contributing%5Cn%5CnSee%20the%20**%5BCargo%20Contributor%20Guide%5D**%20for%20a%20complete%20introduction%5Cnto%20contributing%20to%20Cargo.%5Cn%5Cn%23%23%20License%5Cn%5CnCargo%20is%20primarily%20distributed%20under%20the%20terms%20of%20both%20the%20MIT%20license%5Cnand%20the%20Apache%20License%20(Version%202.0).%5Cn%5CnSee%20%5BLICENSE-APACHE%5D(LICENSE-APACHE)%20and%20%5BLICENSE-MIT%5D(LICENSE-MIT)%20for%20details.%5Cn%5Cn%23%23%23%20Third%20party%20software%5Cn%5CnThis%20product%20includes%20software%20developed%20by%20the%20OpenSSL%20Project%5Cnfor%20use%20in%20the%20OpenSSL%20Toolkit%20(https%3A%2F%2Fwww.openssl.org%2F).%5Cn%5CnIn%20binary%20form%2C%20this%20product%20includes%20software%20that%20is%20licensed%20under%20the%5Cnterms%20of%20the%20GNU%20General%20Public%20License%2C%20version%202%2C%20with%20a%20linking%20exception%2C%5Cnwhich%20can%20be%20obtained%20from%20the%20%5Bupstream%20repository%5D%5B1%5D.%5Cn%5CnSee%20%5BLICENSE-THIRD-PARTY%5D(LICENSE-THIRD-PARTY)%20for%20details.%5Cn%5Cn%5B1%5D%3A%20https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%5Cn%5Cn%22%2C%22sha%22%3A%221d806b978643ef19734550070a3d2e12a223d9eb%22%2C%22replace_content%22%3A%22%23%20Cargo%5Cn%5CnCargo%20downloads%20your%20Rust%20project%E2%80%99s%20dependencies%20and%20compiles%20your%20project.%5Cn%5Cn**To%20start%20using%20Cargo**%2C%20learn%20more%20at%20%5BThe%20Cargo%20Book%5D.%5Cn%5Cn**To%20start%20developing%20Cargo%20itself**%2C%20read%20the%20%5BCargo%20Contributor%20Guide%5D.%5Cn%5Cn%5BThe%20Cargo%20Book%5D%3A%20https%3A%2F%2Fdoc.rust-lang.org%2Fcargo%2F%5Cn%5BCargo%20Contributor%20Guide%5D%3A%20https%3A%2F%2Frust-lang.github.io%2Fcargo%2Fcontrib%2F%5Cn%5Cn%23%23%20Code%20Status%5Cn%5Cn%5B!%5BCI%5D(https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Factions%2Fworkflows%2Fmain.yml%2Fbadge.svg%3Fbranch%3Dauto-cargo)%5D(https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Factions%2Fworkflows%2Fmain.yml)%5Cn%5CnCode%20documentation%3A%20%3Chttps%3A%2F%2Fdoc.rust-lang.org%2Fnightly%2Fnightly-rustc%2Fcargo%2F%3E%5Cn%5Cn%23%23%20Installing%20Cargo%5Cn%5CnCargo%20is%20distributed%20by%20default%20with%20Rust%2C%20so%20if%20you've%20got%20%60rustc%60%20installed%5Cnlocally%20you%20probably%20also%20have%20%60cargo%60%20installed%20locally.%5Cn%5Cn%23%23%20Compiling%20from%20Source%5Cn%5Cn%23%23%23%20Requirements%5Cn%5CnCargo%20requires%20the%20following%20tools%20and%20packages%20to%20build%3A%5Cn%5Cn*%20%60cargo%60%20and%20%60rustc%60%5Cn*%20A%20C%20compiler%20%5Bfor%20your%20platform%5D(https%3A%2F%2Fgithub.com%2Frust-lang%2Fcc-rs%23compile-time-requirements)%5Cn*%20%60git%60%20(to%20clone%20this%20repository)%5Cn%5Cn**Other%20requirements%3A**%5Cn%5CnThe%20following%20are%20optional%20based%20on%20your%20platform%20and%20needs.%5Cn%5Cn*%20%60pkg-config%60%20%E2%80%94%20This%20is%20used%20to%20help%20locate%20system%20packages%2C%20such%20as%20%60libssl%60%20headers%2Flibraries.%20This%20may%20not%20be%20required%20in%20all%20cases%2C%20such%20as%20using%20vendored%20OpenSSL%2C%20or%20on%20Windows.%5Cn*%20OpenSSL%20%E2%80%94%20Only%20needed%20on%20Unix-like%20systems%20and%20only%20if%20the%20%60vendored-openssl%60%20Cargo%20feature%20is%20not%20used.%5Cn%5Cn%20%20This%20requires%20the%20development%20headers%2C%20which%20can%20be%20obtained%20from%20the%20%60libssl-dev%60%20package%20on%20Ubuntu%20or%20%60openssl-devel%60%20with%20apk%20or%20yum%20or%20the%20%60openssl%60%20package%20from%20Homebrew%20on%20macOS.%5Cn%5Cn%20%20If%20using%20the%20%60vendored-openssl%60%20Cargo%20feature%2C%20then%20a%20static%20copy%20of%20OpenSSL%20will%20be%20built%20from%20source%20instead%20of%20using%20the%20system%20OpenSSL.%5Cn%20%20This%20may%20require%20additional%20tools%20such%20as%20%60perl%60%20and%20%60make%60.%5Cn%5Cn%20%20On%20macOS%2C%20common%20installation%20directories%20from%20Homebrew%2C%20MacPorts%2C%20or%20pkgsrc%20will%20be%20checked.%20Otherwise%20it%20will%20fall%20back%20to%20%60pkg-config%60.%5Cn%5Cn%20%20On%20Windows%2C%20the%20system-provided%20Schannel%20will%20be%20used%20instead.%5Cn%5Cn%20%20LibreSSL%20is%20also%20supported.%5Cn%5Cn**Optional%20system%20libraries%3A**%5Cn%5CnThe%20build%20will%20automatically%20use%20vendored%20versions%20of%20the%20following%20libraries.%20However%2C%20if%20they%20are%20provided%20by%20the%20system%20and%20can%20be%20found%20with%20%60pkg-config%60%2C%20then%20the%20system%20libraries%20will%20be%20used%20instead%3A%5Cn%5Cn*%20%5B%60libcurl%60%5D(https%3A%2F%2Fcurl.se%2Flibcurl%2F)%20%E2%80%94%20Used%20for%20network%20transfers.%5Cn*%20%5B%60libgit2%60%5D(https%3A%2F%2Flibgit2.org%2F)%20%E2%80%94%20Used%20for%20fetching%20git%20dependencies.%5Cn*%20%5B%60libssh2%60%5D(https%3A%2F%2Fwww.libssh2.org%2F)%20%E2%80%94%20Used%20for%20SSH%20access%20to%20git%20repositories.%5Cn*%20%5B%60libz%60%5D(https%3A%2F%2Fzlib.net%2F)%20(aka%20zlib)%20%E2%80%94%20Used%20for%20data%20compression.%5Cn%5CnIt%20is%20recommended%20to%20use%20the%20vendored%20versions%20as%20they%20are%20the%20versions%20that%20are%20tested%20to%20work%20with%20Cargo.%5Cn%5Cn%23%23%23%20Compiling%5Cn%5CnFirst%2C%20you'll%20want%20to%20check%20out%20this%20repository%5Cn%5Cn%60%60%60%5Cngit%20clone%20https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo.git%5Cncd%20cargo%5Cn%60%60%60%5Cn%5CnWith%20%60cargo%60%20already%20installed%2C%20you%20can%20simply%20run%3A%5Cn%5Cn%60%60%60%5Cncargo%20build%20--release%5Cn%60%60%60%5Cn%5Cn%23%23%20Adding%20new%20subcommands%20to%20Cargo%5Cn%5CnCargo%20is%20designed%20to%20be%20extensible%20with%20new%20subcommands%20without%20having%20to%20modify%5CnCargo%20itself.%20See%20%5Bthe%20Wiki%20page%5D%5Bthird-party-subcommands%5D%20for%20more%20details%20and%5Cna%20list%20of%20known%20community-developed%20subcommands.%5Cn%5Cn%5Bthird-party-subcommands%5D%3A%20https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Fwiki%2FThird-party-cargo-subcommands%5Cn%5Cn%5Cn%23%23%20Releases%5Cn%5CnCargo%20releases%20coincide%20with%20Rust%20releases.%5CnHigh%20level%20release%20notes%20are%20available%20as%20part%20of%20%5BRust's%20release%20notes%5D%5Brel%5D.%5CnDetailed%20release%20notes%20are%20available%20in%20this%20repo%20at%20%5BCHANGELOG.md%5D.%5Cn%5Cn%5Brel%5D%3A%20%2F%2Fdnrops%2Fcargo%2Ftree%2Fmaster%2Fhttps%3A%2Fgithub.com%2Frust-lang%2Frust%2Fblob%2Fmaster%2FRELEASES.md%5Cn%5BCHANGELOG.md%5D%3A%20%2F%2Fdnrops%2Fcargo%2Ftree%2Fmaster%2FCHANGELOG.md%5Cn%5Cn%23%23%20Reporting%20issues%5Cn%5CnFound%20a%20bug%3F%20We'd%20love%20to%20know%20about%20it!%5Cn%5CnPlease%20report%20all%20issues%20on%20the%20GitHub%20%5Bissue%20tracker%5D%5Bissues%5D.%5Cn%5Cn%5Bissues%5D%3A%20https%3A%2F%2Fgithub.com%2Frust-lang%2Fcargo%2Fissues%5Cn%5Cn%23%23%20Contributing%5Cn%5CnSee%20the%20**%5BCargo%20Contributor%20Guide%5D**%20for%20a%20complete%20introduction%5Cnto%20contributing%20to%20Cargo.%5Cn%5Cn%23%23%20License%5Cn%5CnCargo%20is%20primarily%20distributed%20under%20the%20terms%20of%20both%20the%20MIT%20license%5Cnand%20the%20Apache%20License%20(Version%202.0).%5Cn%5CnSee%20%5BLICENSE-APACHE%5D(LICENSE-APACHE)%20and%20%5BLICENSE-MIT%5D(LICENSE-MIT)%20for%20details.%5Cn%5Cn%23%23%23%20Third%20party%20software%5Cn%5CnThis%20product%20includes%20software%20developed%20by%20the%20OpenSSL%20Project%5Cnfor%20use%20in%20the%20OpenSSL%20Toolkit%20(https%3A%2F%2Fwww.openssl.org%2F).%5Cn%5CnIn%20binary%20form%2C%20this%20product%20includes%20software%20that%20is%20licensed%20under%20the%5Cnterms%20of%20the%20GNU%20General%20Public%20License%2C%20version%202%2C%20with%20a%20linking%20exception%2C%5Cnwhich%20can%20be%20obtained%20from%20the%20%5Bupstream%20repository%5D%5B1%5D.%5Cn%5CnSee%20%5BLICENSE-THIRD-PARTY%5D(LICENSE-THIRD-PARTY)%20for%20details.%5Cn%5Cn%5B1%5D%3A%20https%3A%2F%2Fgithub.com%2Flibgit2%2Flibgit2%5Cn%5Cn%22%7D"},"zoneReducer":{"zoneDetail":"","newsDetail":""}}
Cargo
Cargo downloads your Rust project’s dependencies and compiles your project.
To start using Cargo, learn more at The Cargo Book.
To start developing Cargo itself, read the Cargo Contributor Guide.
Code Status
Code documentation: https://doc.rust-lang.org/nightly/nightly-rustc/cargo/
Installing Cargo
Cargo is distributed by default with Rust, so if you’ve got
rustc
installed locally you probably also havecargo
installed locally.Compiling from Source
Requirements
Cargo requires the following tools and packages to build:
cargo
andrustc
git
(to clone this repository)Other requirements:
The following are optional based on your platform and needs.
pkg-config
— This is used to help locate system packages, such aslibssl
headers/libraries. This may not be required in all cases, such as using vendored OpenSSL, or on Windows.OpenSSL — Only needed on Unix-like systems and only if the
vendored-openssl
Cargo feature is not used.This requires the development headers, which can be obtained from the
libssl-dev
package on Ubuntu oropenssl-devel
with apk or yum or theopenssl
package from Homebrew on macOS.If using the
vendored-openssl
Cargo feature, then a static copy of OpenSSL will be built from source instead of using the system OpenSSL. This may require additional tools such asperl
andmake
.On macOS, common installation directories from Homebrew, MacPorts, or pkgsrc will be checked. Otherwise it will fall back to
pkg-config
.On Windows, the system-provided Schannel will be used instead.
LibreSSL is also supported.
Optional system libraries:
The build will automatically use vendored versions of the following libraries. However, if they are provided by the system and can be found with
pkg-config
, then the system libraries will be used instead:libcurl
— Used for network transfers.libgit2
— Used for fetching git dependencies.libssh2
— Used for SSH access to git repositories.libz
(aka zlib) — Used for data compression.It is recommended to use the vendored versions as they are the versions that are tested to work with Cargo.
Compiling
First, you’ll want to check out this repository
With
cargo
already installed, you can simply run:Adding new subcommands to Cargo
Cargo is designed to be extensible with new subcommands without having to modify Cargo itself. See the Wiki page for more details and a list of known community-developed subcommands.
Releases
Cargo releases coincide with Rust releases. High level release notes are available as part of Rust’s release notes. Detailed release notes are available in this repo at CHANGELOG.md.
Reporting issues
Found a bug? We’d love to know about it!
Please report all issues on the GitHub issue tracker.
Contributing
See the Cargo Contributor Guide for a complete introduction to contributing to Cargo.
License
Cargo is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.
Third party software
This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (https://www.openssl.org/).
In binary form, this product includes software that is licensed under the terms of the GNU General Public License, version 2, with a linking exception, which can be obtained from the upstream repository.
See LICENSE-THIRD-PARTY for details.