Skip to content
#

Rust

rust logo

Rust is a systems programming language created by Mozilla. It is similar to C++, but is designed for improved memory safety without sacrificing performance.

Here are 13,803 public repositories matching this topic...

Centril
Centril commented Dec 15, 2019

Once #![feature(or_patterns)] (#54883), i.e. pat_0 | ... | pat_n in nested positions, e.g. Some(Ok(a) | Err(b)) have progressed sufficiently in their implementation, e.g. when the MIR building implementation is done, we should extend the test suite for #![feature(bindings_after_at)] (#65490), e.g. b1 @ Some(b2), to exercise the combination of these two features. Ideally, we would also ac

bat
desbma
desbma commented Nov 27, 2019

Line wrapping seems to be disabled when piping to another process, even when forced with --wrap=character.

$ echo 123456789abcd > /tmp/file
$ bat --style plain --terminal-width 10 --wrap=character /tmp/file
123456789a
bcd
$ bat --style plain --terminal-width 10 --wrap=character /tmp/file | command cat
123456789abcd
jean-airoldie
jean-airoldie commented Jun 6, 2019

Here is some general documentation improvement suggestion regarding flatbuffers. This is what I remember struggling with (from the top of my head). Also some point might be a little bit opinionated.

Some of the points were taken from #5387.

  • Regarding the builder:
    • The fact that its kinda like an arena allocator used for serialization.
    • The concept of offsets, what do they repre
memoryruins
memoryruins commented Feb 21, 2018

As awesome-rust grows, there are a few tweaks that may improve readability, consistency, and load times. Before making changes en masse, it would be great to hear anyone's thoughts and a green light from maintainers.

  • e.g current format (for half the current list. currently, not all entries include links to crates)
Follpvosten
Follpvosten commented Dec 3, 2019

Description

I'm submitting a feature request:

Going along with #745, this would be a very nice usability improvement (as also mentioned in #756).

For example, this:

let placeholder = if something { "Something" } else { "Something else" };
let maxlength = if blah { 7 } else { 10 };
html! {
    <input type="text" /* ... */ placeholder=placeholder maxlength=maxlength 
malaire
malaire commented Nov 24, 2019

The documentation of FromDataSimple doesn't mention that it's only for debugging. This is only mentioned at documentation of FromData.

Based on several closed issued about this and recent message at #beginners, this causes enough confusion that documentation of FromDataSimple should also mention this.

darkain
darkain commented Dec 1, 2019

root@titanic /mnt/datastore/RAWs/.zfs# exa
".": Invalid argument (os error 22)
root@titanic /mnt/datastore/RAWs/.zfs# /bin/ls
snapshot

the ZFS file system creates a super-hidden (even ls -al wont show it) .zfs folder, but you can still cd into it. once in this folder, exa doesn't work. exa however works in sub-folders of .zfs, such as .zfs/snapshots. ls, as shown above, still works.

matkoniecz
matkoniecz commented Dec 8, 2019

Is it a suitable start for someone with 0 Rust experience? (my guess: yes, but it is a guess and it turned out to be wrong)

small exercises to get you used to reading and writing Rust code

indicates that it is for beginners, but it is unclear is it for someone just starting from hello world.

Alternatively, for a first-time Rust learner, there's several other resources:

Is it suppos

LucioFranco
LucioFranco commented Aug 14, 2019

Note: This is an issue that is in 0.1.x and in 0.2.x. Any fix should be backported.

UdpFramed violates the decode contract by not attempting to continue decoding past the first discrete item if there is more data in the buffer.

Correct Framed implementation https://github.com/tokio-rs/tokio/blob/v0.1.x/tokio-io/src/framed_read.rs#L199

and incorrect https://github.com/tokio-rs/tokio/blo

lk-geimfari
lk-geimfari commented Aug 30, 2019

Well, we need to check all the projects and remove outdated ones.

We declare this in the readme:

However, keep in mind that we don't accept mammoth's shit. Only active and interesting projects with good documentation are added. Dead and abandoned projects will be removed.

But, sadly at this moment, this project looks like a mammoth shit itself.

We really need to fix it. I think

porglezomp
porglezomp commented Oct 11, 2019

I went to godbolt in the middle of the night and found it extremely bright and started wondering if it could respect the system setting.

There is a CSS media feature prefers-color-scheme which indicates whether the user prefers light or dark mode. It might be nice to make the default dark mode if the user hasn't explicitly picked one yet be "System" and using the prefers-color-scheme settin

platy
platy commented Jul 8, 2019

My first game on OSX, I have 3 Mills, each time i try to inspect 2 of them the UI crashes, I can inspect other buildings just fine.

Citybound version: v0.1.2-790-g7c076e3
Error: Rust WASM error: panicked at 'capacity overflow', src/liballoc/raw_vec.rs:746:5
Module.STDWEB_PRIVATE.to_js($1);Module.STDWEB_PRIVATE.from_js($0, in ../target/wasm32-unknown-unknown/release/cb_browser_ui.js 649:1
starship
pfmoore
pfmoore commented Nov 12, 2019

There appears to be a lot of variation in how complete the "partially done" commands are. For example od seems fairly complete, but date doesn't even support simple usages like date +%Y%m%d, and sort seems to have a good selection of options, but is missing some relatively important ones like sort keys.

It would be really useful if there were some documentation clarifying how complete t

wasmer
pventuzelo
pventuzelo commented Sep 30, 2019

Describe the bug

An index out of bound error make wasmer to panic when requesting fake function name with the --em-entrypoint argument:

./target/release/wasmer run --em-entrypoint abcd  emscripten_hello.wasm
thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', /rustc/ad7c55e1fc55d9af4787b285cec1c64e3480ae84/src/libcore/slice/mod.rs:2704:10

Created by Graydon Hoare

Released 2010

Organization
rust-lang
Website
www.rust-lang.org
Wikipedia
Wikipedia

Related Topics

c-plus-plus language cargo
You can’t perform that action at this time.