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 21,988 public repositories matching this topic...

starkpsmichael
starkpsmichael commented Apr 15, 2021

Seems like that the new http native bindings doesn't work in a WebWorker, see example below.

http2.ts

const body = new TextEncoder().encode("Hello World");
for await (const conn of Deno.listen({ port: 80 })) {
  (async () => {
    for await (const { respondWith } of Deno.serveHttp(conn)) {
      respondWith(new Response(body));
    }
  })();
}

worker.ts

ne
yew
tauri
nothingismagick
nothingismagick commented Apr 17, 2021

lodash is a walking timebomb. every week or two another vulnerability (usually prototype pollution) appears. So I went for a stroll though our codebase, and found a case where we are using it directly:

tauri/tooling/create-tauri-app/src/index.ts

import { map, find } from "lodash";
export const recipeByShortName = (name: string): Recipe | undefined =>
  find(allRecipes, (r: Recipe) => 
jonathandturner
jonathandturner commented Apr 17, 2021

Is your feature request related to a problem? Please describe.
We're currently using both which and ichwh. The ichwh crate is meant for use in async/await use cases, though because we have rewritten to use sync iterators, we no longer need this functionality.

Describe the solution you'd like
Let's rewrite the ichwh usage to use a simpler, sync approach. This would let us remov

TimUntersberger
TimUntersberger commented Mar 1, 2021

Right now any StyleSheet has a list of functions without a default implementation. Implementing a StyleSheet is really annoying, because you have to override all of the functions and not just the thing you want to change.

I recently wanted to just change the border_radius of a text_input and I had to write the following code.

impl StyleSheet for Styles {
    fn active(&self) ->
bevy
alice-i-cecile
alice-i-cecile commented Apr 15, 2021

How can Bevy's documentation be improved?

Searching a term on docs.rs (or through your IDE's representation) is most user's first step when trying to understand how a function or struct work. For good reason, much of our documentation right now lives in the form of longer-form examples in the examples folder of this repo.

We should bridge this gap, by linking to these examples from the

Shadlock0133
Shadlock0133 commented Apr 8, 2021

Currently, with dark theme only available colour scheme is grey shades, while light mode offers multiple colour schemes. With only greys, it can be hard to tell difference between shades.

It might be good idea to add (more) colour schemes to dark mode. Even just copying schemes from light mode would be a good start, although they might need a bit of tweaking to avoid heavy contrast with backgro

fugkco
fugkco commented Mar 8, 2021

Subject of the issue

When attempting to do a login to an account that has 2FA enabled, but without the 2FA details, it seems to return the wrong error response. Not just the message, but the whole object is different. I understand that this is likely not a priority considering everything works, but for parity's sake, it would be nice to have this implemented the right way.

I also noticed t

Created by Graydon Hoare

Released 2010

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

Related Topics

c-plus-plus language