1
Fork 0
Empowering everyone to build reliable and efficient software. Gabriel's commits. https://www.rust-lang.org/
Find a file
Trevor Gross 332ab61d29
Rollup merge of #128902 - evanj:evan.jones/env-var-doc, r=workingjubilee
doc: std::env::var: Returns None for names with '=' or NUL byte

The documentation incorrectly stated that std::env::var could return an error for variable names containing '=' or the NUL byte. Copy the correct documentation from var_os.

var_os was fixed in Commit 8a7a665, Pull Request #109894, which closed Issue #109893.

This documentation was incorrectly added in commit f2c0f292, which replaced a panic in var_os by returning None, but documented the change as "May error if ...".

Reference the specific error values and link to them.
2024-08-18 23:41:47 -05:00
.github Fix dependencies cron job 2024-08-14 09:57:14 -07:00
compiler Rollup merge of #128628 - khuey:simply-cfg-erase-source-info, r=nnethercote 2024-08-18 23:41:47 -05:00
library Rollup merge of #128902 - evanj:evan.jones/env-var-doc, r=workingjubilee 2024-08-18 23:41:47 -05:00
LICENSES
src Rollup merge of #127679 - RalfJung:raw_ref_op, r=jieyouxu 2024-08-18 23:41:46 -05:00
tests Rollup merge of #128084 - surechen:fix_125997_v1, r=cjgillot 2024-08-18 23:41:46 -05:00
.clang-format
.editorconfig
.git-blame-ignore-revs
.gitattributes
.gitignore gitignore: Add Zed and Helix editors 2024-08-09 21:26:27 +01:00
.gitmodules
.ignore
.mailmap
Cargo.lock Rollup merge of #129164 - ChrisDenton:comdat, r=jieyouxu 2024-08-18 14:55:22 +08:00
Cargo.toml Add support for raw-dylib 2024-08-08 13:51:58 -07:00
CODE_OF_CONDUCT.md
config.example.toml Enable zstd for debug compression. 2024-08-09 05:55:23 -07:00
configure
CONTRIBUTING.md
COPYRIGHT
INSTALL.md
LICENSE-APACHE
LICENSE-MIT
README.md
RELEASES.md
REUSE.toml
rust-bors.toml
rustfmt.toml
triagebot.toml Remove JohnTitor from review rotation 2024-08-17 17:34:52 -07:00
x
x.ps1
x.py

This is the main source code repository for Rust. It contains the compiler, standard library, and documentation.

Why Rust?

  • Performance: Fast and memory-efficient, suitable for critical services, embedded devices, and easily integrate with other languages.

  • Reliability: Our rich type system and ownership model ensure memory and thread safety, reducing bugs at compile-time.

  • Productivity: Comprehensive documentation, a compiler committed to providing great diagnostics, and advanced tooling including package manager and build tool (Cargo), auto-formatter (rustfmt), linter (Clippy) and editor support (rust-analyzer).

Quick Start

Read "Installation" from The Book.

Installing from Source

If you really want to install from source (though this is not recommended), see INSTALL.md.

Getting Help

See https://www.rust-lang.org/community for a list of chat platforms and forums.

Contributing

See CONTRIBUTING.md.

License

Rust is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0), with portions covered by various BSD-like licenses.

See LICENSE-APACHE, LICENSE-MIT, and COPYRIGHT for details.

Trademark

The Rust Foundation owns and protects the Rust and Cargo trademarks and logos (the "Rust Trademarks").

If you want to use these names or brands, please read the media guide.

Third-party logos may be subject to third-party copyrights and trademarks. See Licenses for details.