|1 day ago||5 days ago|
|Apache License 2.0||GNU General Public License v3.0 or later|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Announcing Rust 1.62.0
Can you google it please? I'm on mobile. A quick search turned this up, which should lead you in the right direction: https://github.com/rust-lang/cargo/issues/5657
It is an unintentional breaking change in cargo_util https://github.com/rust-lang/cargo/issues/10803
Otherwise I did include this as an option in the shorthand feature issue.
5 projects | news.ycombinator.com | 30 Jun 2022
For those unaware, some ask "why"
- No need to look up the version (though some IDEs do it for you)
- It shows you what features the crate has and whether they are activated, making it easier to discover features you need to enable or what you can remove to improve compile times
- Make it easier to document how to add a set of dependencies needed for a project (e.g. "Run `cargo add serde serde_json -F serde/derive`")
- The opportunity for more QoL improvements, see https://github.com/rust-lang/cargo/issues?q=is%3Aopen+is%3Ai...
It is impressive the amount of work it took to get this ready. I took over the effort almost a year ago and at times was working full time on it (thanks to my employer). Just my part included
- a near rewrite of the format-preserving toml parser (toml_edit)
- a major revamp of the UI
- a major revamp of testing
- a near rewrite to make it compatible with cargo's code base
Any active open source repos built using Rust that need development ?
11 projects | reddit.com/r/rust | 16 Jun 2022
Has anyone provided feedback on workspace inheritance yet?
Wasi dependencies in Cargo.lock
1 project | reddit.com/r/rust | 15 Jun 2022
Cargo currently does not produce minimal lock files. During generation, it includes things like platform specific dependencies etc, which has been a blocker for other feature like platform specific cargo vendoring. The closest to a tracking issue is https://github.com/rust-lang/cargo/issues/5133 and a few other issues linked inside it.
Why are rustflags in target.cfg sections not applied?
1 project | reddit.com/r/rust | 5 Jun 2022
Ah, there is an issue for this: https://github.com/rust-lang/cargo/issues/6858
1 project | reddit.com/r/ProgrammerHumor | 2 Jun 2022
How to compile for native and wasm without erasing build artifacts?
2 projects | reddit.com/r/rust | 31 May 2022
I've encountered this before when trying to compile for different targets. I found https://github.com/rust-lang/cargo/issues/9239 which seems relevant. In my case a workaround was to pass --target explicitly when compiling for the host.
Is there any docs about crates.io API
5 projects | reddit.com/r/rust | 29 May 2022
Lurker here. Haven’t started to learn rust but wouldn’t this be self documenting by looking at cargo? I have a feeling there would be little other public endpoints outside of that. Very cursory look yields: https://github.com/rust-lang/cargo/blob/master/crates/crates-io/lib.rs
How do I get around there being no function overloading?
1 project | reddit.com/r/rust | 26 Jun 2022
It does get special treatment from Clippy though, so the convention can be considered canonical. https://github.com/rust-lang/rust-clippy/blob/master/clippy_lints/src/new_without_default.rs
What are some good rust tools/extentions?
6 projects | reddit.com/r/learnrust | 24 Jun 2022
Clippy, rust's main linter tool. It's highly configurable and gives very high signal info6 projects | reddit.com/r/learnrust | 24 Jun 2022
> Rust Error Checker/Reccomender
[Media] Clippy hurts, but in a good way
1 project | reddit.com/r/rust | 9 Jun 2022
By the way, if you happen upon warnings that you do not understand or suggestions that don't work, please file an issue.
Should java.util.Date be deprecated?
1 project | reddit.com/r/java | 10 May 2022
thread 'main' has overflowed its stack on Enum Match
2 projects | reddit.com/r/rust | 21 Apr 2022
Adding to what others have already said, Rust has a very useful code linting tool called Clippy.
Is there ever a case you'd want to use &String::new() for something expecting &str?
2 projects | reddit.com/r/rust | 6 Apr 2022
In a previous PR to clippy, an suggestion from the maintainers (@flip1995) came up to create a lint detecting passing an owned string to something expecting where "" would be accepted. I want to follow up on this and open an issue (and perhaps a PR) to implement this, but first I want to make sure I'm not missing anything.
What is your favourite Rust specific feature that you miss in other languages?
4 projects | reddit.com/r/rust | 3 Apr 2022
Yes, we'd like to see that. The right place to report is on github.
Hey Rustaceans! Got a question? Ask here (13/2022)!
8 projects | reddit.com/r/rust | 30 Mar 2022
If you enjoy Rust and have learning time available, join a project. E.g. clippy has mentored issues for newcomers and doing a PR will get you on the thanks page, which will look good to potential employers.
Why is is prettier used if eslint can format?
4 projects | reddit.com/r/node | 11 Mar 2022
There isn't overlap between these concerns (formatting and linting), formatting is syntactic analysis and linting is semantic analysis. There's only overlap because ESLint has some formatting capabilities as well. In modern languages, these are separate tools because they are separate concerns (rustfmt and rust-clippy , gofmt and go vet ).
What are some alternatives?
rust.vim - Vim configuration for Rust.
rustfmt - Format Rust code
intellij-rust - Rust plugin for the IntelliJ Platform
RustCMake - An example project showing usage of CMake with Rust
emacs-ycmd - Emacs client for ycmd, the code completion system.
sublime-rust - The official Sublime Text 3 package for the Rust Programming Language
Rust for Visual Studio Code
CodeLLDB - A native debugger extension for VSCode based on LLDB
cargo-update - A cargo subcommand for checking and applying updates to installed executables
cargo-release - Cargo subcommand `release`: everything about releasing a rust crate.
tarpaulin - A code coverage tool for Rust projects