profile
viewpoint

95th/defaults 1

A better Default derive macro.

95th/jsmn-rs 1

Rust impl of Jasmine JSON parser (https://github.com/zserge/jsmn)

95th/aho-corasick 0

A fast implementation of Aho-Corasick in Rust.

95th/alloc-wg 0

Attempt of collection several proposals of the allocators-wg

95th/arrow 0

Apache Arrow is a cross-language development platform for in-memory data. It specifies a standardized language-independent columnar memory format for flat and hierarchical data, organized for efficient analytic operations on modern hardware. It also provides computational libraries and zero-copy streaming messaging and interprocess communication. Languages currently supported include C, C++, Java, JavaScript, Python, and Ruby.

95th/ben 0

A minimalistic Bencode parser

95th/bip-rs 0

BitTorrent Infrastructure Project In Rust

95th/bt 0

BitTorrent library and client with DHT, magnet links, encryption and more

95th/bumpalo 0

A fork of bumpalo to try out rust-lang/wg-allocators proposals

startedRustPython/RustPython

started time in 2 days

fork 95th/rust

Empowering everyone to build reliable and efficient software.

https://www.rust-lang.org

fork in 2 days

fork 95th/rust

Empowering everyone to build reliable and efficient software.

https://www.rust-lang.org

fork in 2 days

startedzesterer/broom

started time in 2 days

fork 95th/sqlx

🧰 The Rust SQL Toolkit. An async, pure Rust SQL crate featuring compile-time checked queries without a DSL. Supports PostgreSQL, MySQL, and SQLite.

fork in 3 days

pull request commentdenoland/deno

Undo JsonOpDispatcher and OpDispatcher traits

@bartlomieju are those causing some problem?

ry

comment created time in 3 days

startedgithub/archive-program

started time in 4 days

startedron-rs/ron

started time in 9 days

issue openedrust-lang/rust

multiple mutable borrow error with get_mut

I tried this code:

use std::collections::HashMap;

pub fn find<'a>(lookup: &HashMap<u32, usize>, items: &'a mut Vec<u32>, id: u32) -> Option<&'a mut u32> {
    if let Some(token) = lookup.get(&id) {
        return items.get_mut(*token);
    }

    if let Some(token) = lookup.get(&id.wrapping_add(1)) {
        let item = items.get_mut(*token)?;
        if *item == id {
            return Some(item);
        }
    }

    if let Some(token) = lookup.get(&(id.wrapping_sub(1))) {
        let item = items.get_mut(*token)?;
        if *item == id {
            return Some(item);
        }
    }

    None
}

I expected to see this happen: Code should compile because the latter get_mut calls don't overlap with preceding ones.

Instead, this happened: Got following error

error[E0499]: cannot borrow `*items` as mutable more than once at a time
  --> src/lib.rs:16:20
   |
3  | pub fn find<'a>(lookup: &HashMap<u32, usize>, items: &'a mut Vec<u32>, id: u32) -> Option<&'a mut u32> {
   |             -- lifetime `'a` defined here
...
9  |         let item = items.get_mut(*token)?;
   |                    ----- first mutable borrow occurs here
10 |         if *item == id {
11 |             return Some(item);
   |                    ---------- returning this value requires that `*items` is borrowed for `'a`
...
16 |         let item = items.get_mut(*token)?;
   |                    ^^^^^ second mutable borrow occurs here

It works if I comment the if condition inside the second if let:

use std::collections::HashMap;

pub fn find<'a>(lookup: &HashMap<u32, usize>, items: &'a mut Vec<u32>, id: u32) -> Option<&'a mut u32> {
    if let Some(token) = lookup.get(&id) {
        return items.get_mut(*token);
    }

    if let Some(token) = lookup.get(&id.wrapping_add(1)) {
        let item = items.get_mut(*token)?;
        // if *item == id {
            return Some(item);
        // }
    }

    if let Some(token) = lookup.get(&(id.wrapping_sub(1))) {
        let item = items.get_mut(*token)?;
        if *item == id {
            return Some(item);
        }
    }

    None
}

if I comment the last if let, then also it works:

use std::collections::HashMap;

pub fn find<'a>(lookup: &HashMap<u32, usize>, items: &'a mut Vec<u32>, id: u32) -> Option<&'a mut u32> {
    if let Some(token) = lookup.get(&id) {
        return items.get_mut(*token);
    }

    if let Some(token) = lookup.get(&id.wrapping_add(1)) {
        let item = items.get_mut(*token)?;
        if *item == id {
            return Some(item);
        }
    }

    // if let Some(token) = lookup.get(&(id.wrapping_sub(1))) {
    //     let item = items.get_mut(*token)?;
    //     if *item == id {
    //         return Some(item);
    //     }
    // }

    None
}

So there are still multiple mutable borrows but it works for those cases. But why not in the first case? Is it incorrect borrowing pattern somehow that I am not seeing?

Meta

<!-- If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. -->

rustc --version --verbose:

rustc 1.46.0-nightly (346aec9b0 2020-07-11)
binary: rustc
commit-hash: 346aec9b02f3c74f3fce97fd6bda24709d220e49
commit-date: 2020-07-11
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0

Thanks

created time in 12 days

startedimmunant/c2rust

started time in 12 days

push event95th/tokio_utp

Gurwinder Singh

commit sha 06cd651416401a017f033783736a736b50cc41f4

Fix

view details

push time in 13 days

push event95th/tokio_utp

Gurwinder Singh

commit sha 888bdf70b3e26cb1da24cb66dc8b3122572f6c8a

Use Interval

view details

push time in 13 days

push event95th/tokio_utp

Gurwinder Singh

commit sha e6618f0852c8c0731de3fa518ae09bbc1ee84ca3

more cleanup

view details

push time in 13 days

push event95th/tokio_utp

Gurwinder Singh

commit sha 0ccc2caae55aa2f910d9aa8abb4edca152589041

cleanup

view details

push time in 13 days

create barnch95th/tokio_utp

branch : mioless

created branch time in 13 days

push event95th/tokio_utp

Gurwinder Singh

commit sha eaa2efbfb944f73077092de114771f4ad7ad418b

Bug fix

view details

push time in 14 days

startedgooglefonts/Inconsolata

started time in 14 days

startedstjepang/async-io

started time in 14 days

push event95th/tokio_utp

Gurwinder Singh

commit sha 80c7a667034842786b19f91c0f59b2d903061a62

Make a few more tests compile (they still fail but ..)

view details

push time in 14 days

push event95th/tokio_utp

Gurwinder Singh

commit sha 43aa8e28faf42224fa3e1a8d9ee07bfbb0b77333

Enable lib tests (one failing)

view details

push time in 14 days

push event95th/tokio_utp

Gurwinder Singh

commit sha 1b5aaf675944cd46562cecb25c3452055d76fd98

Upgrade env_logger

view details

Gurwinder Singh

commit sha 5ce44f82c24c1881fee40a50fe6a5c697a7631af

Update rand and nix

view details

push time in 14 days

push event95th/tokio_utp

Gurwinder Singh

commit sha da93cb74bd69d9ddb855b7c114b23b3f6f4c36ab

It compiles

view details

push time in 14 days

push event95th/btrs

Gurwinder Singh

commit sha 1180199d033cdd5ace34a9d37672f74efb6fe1b8

fix: clippy

view details

Gurwinder Singh

commit sha ba0e6d0684fc7ddc90a84a8eb5283054abff9efd

Cleanup

view details

push time in 15 days

create barnch95th/youtp

branch : master

created branch time in 16 days

created repository95th/youtp

created time in 16 days

push event95th/btrs

Gurwinder Singh

commit sha 1180199d033cdd5ace34a9d37672f74efb6fe1b8

fix: clippy

view details

push time in 17 days

fork 95th/libutp

uTorrent Transport Protocol library

http://github.com/bittorrent/libutp

fork in 18 days

issue comment95th/btrs

Implement AsyncRead and AsyncWrite on UtpStream

One ugly solution to this is manage all state for socket communication manually using poll_* code.

95th

comment created time in 19 days

create barnch95th/btrs

branch : async_rw

created branch time in 19 days

issue opened95th/btrs

Implement AsyncRead and AsyncWrite on UtpSocket

created time in 19 days

push event95th/btrs

Gurwinder Singh

commit sha 269dfb1f81844a79277007f182fb3bfe3aa0ba92

utp: reuse buffer for pending_data

view details

push time in 20 days

push event95th/btrs

Gurwinder Singh

commit sha c1843ea867e4be0bde451c7cff580c0665dcc946

utp: Use std's TryFrom

view details

push time in 20 days

push event95th/btrs

Gurwinder Singh

commit sha 9209af795b48cad5542dafc884db06f8596a763e

utp: refactor

view details

push time in 20 days

fork 95th/tokio_utp

uTP implementation for Rust + tokio

fork in 20 days

push event95th/btrs

Gurwinder Singh

commit sha 40cb47959386f9af4fa100e0fad3eff8328adc07

add utp impl based on rust-utp

view details

push time in 20 days

push event95th/btrs

Gurwinder Singh

commit sha b9367cf08c6f793d5a4dec0fb492318981ff674d

add utp impl based on rust-utp

view details

push time in 20 days

push event95th/btrs

Gurwinder Singh

commit sha 80ecb92821ecb01b76e0198f351315d2df7d1ca9

utp: add as member project

view details

push time in 20 days

push event95th/btrs

Gurwinder Singh

commit sha 0532a370eee8360fc551fff373f7476e6d44f158

add utp impl based rust-utp

view details

push time in 20 days

push event95th/rust-utp

Gurwinder Singh

commit sha c38851e8d60043006623077298799279443c2260

Port to async using tokio

view details

push time in 20 days

push event95th/rust-utp

Gurwinder Singh

commit sha cd1da982b4b96a84ee00aa0329bdb28170c9e347

Update deps

view details

Gurwinder Singh

commit sha a3733e60316df9a0260db37fc98ffbafcb9a6286

Fixes

view details

push time in 20 days

push event95th/rust-utp

Gurwinder Singh

commit sha 30e2d630a0c37fe9578407bdf4df06724f618d18

update edition to 2018

view details

push time in 20 days

fork 95th/rust-utp

A µTP (Micro/uTorrent Transport Library) library implemented in Rust

fork in 21 days

push event95th/btrs

Gurwinder Singh

commit sha 87aefbda007c0df49457216dc4ce115b2891516a

refactor ExtendedMessage methods

view details

push time in 21 days

push event95th/btrs

Gurwinder Singh

commit sha 1ab0be2474af1cc7a48b3ab6a057e4f87abbfc36

Reuse DHT instance created during metadata fetch

view details

push time in 21 days

issue closedrust-lang/rust

Incorrect `unused_assignments` warning

I tried this code:

pub fn main() {
    let mut f = Foo { data: None };
    f.foo();
}

pub struct Foo<'a> {
    data: Option<&'a mut u32>,
}

impl Foo<'_> {
    pub fn foo(&mut self) {
        let mut new_data = None;
        let data = match &mut self.data {
            Some(d) => Some(&mut **d),
            None => {
                match bar() {
                    Some(d) => {
                        new_data = Some(d);
                        new_data.as_mut()
                    },
                    None => {
                        None
                    }
                }
            }
        };
        println!("{:?}", data);
    }
}

fn bar() -> Option<u32> { Some(3) }

I expected to see this happen: No unused assignment warnings.

Instead, this happened: The above code prints Some(3) which is coming from a reference of new_data field. But I get following warning:

warning: value assigned to `new_data` is never read
  --> src/main.rs:12:13
   |
12 |         let mut new_data = None;
   |             ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_assignments)]` on by default
   = help: maybe it is overwritten before being read?

Meta

rustc --version --verbose:

rustc 1.46.0-nightly (346aec9b0 2020-07-11)
binary: rustc
commit-hash: 346aec9b02f3c74f3fce97fd6bda24709d220e49
commit-date: 2020-07-11
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0

closed time in 21 days

95th

issue commentrust-lang/rust

Incorrect `unused_assignments` warning

I see that it complains about the None assigned to new_data which is not required. Sorry about this issue.

95th

comment created time in 21 days

issue openedrust-lang/rust

Incorrect `unused_assignments` warning

I tried this code:

pub fn main() {
    let mut f = Foo { data: None };
    f.foo();
}

pub struct Foo<'a> {
    data: Option<&'a mut u32>,
}

impl Foo<'_> {
    pub fn foo(&mut self) {
        let mut new_data = None;
        let data = match &mut self.data {
            Some(d) => Some(&mut **d),
            None => {
                match bar() {
                    Some(d) => {
                        new_data = Some(d);
                        new_data.as_mut()
                    },
                    None => {
                        None
                    }
                }
            }
        };
        println!("{:?}", data);
    }
}

fn bar() -> Option<u32> { Some(3) }

I expected to see this happen: No unused assignment warnings.

Instead, this happened: The above code prints Some(3) which is coming from a reference of new_data field. But I get following warning:

warning: value assigned to `new_data` is never read
  --> src/main.rs:12:13
   |
12 |         let mut new_data = None;
   |             ^^^^^^^^^^^^
   |
   = note: `#[warn(unused_assignments)]` on by default
   = help: maybe it is overwritten before being read?

Meta

rustc --version --verbose:

rustc 1.46.0-nightly (346aec9b0 2020-07-11)
binary: rustc
commit-hash: 346aec9b02f3c74f3fce97fd6bda24709d220e49
commit-date: 2020-07-11
host: x86_64-unknown-linux-gnu
release: 1.46.0-nightly
LLVM version: 10.0

created time in 21 days

push event95th/btrs

Gurwinder Singh

commit sha c114fd468668dd9543e87f994c9e63c489832a01

limit no of outstanding metadata requests, reuse peers resolved during metadata requests

view details

push time in 21 days

push event95th/btrs

Gurwinder Singh

commit sha 142303c96d6e77179dc5d0af106177db4c0a55a5

remove unused fields

view details

push time in 22 days

push event95th/btrs

Gurwinder Singh

commit sha dcf81f1831117707e3d60b8f0899b498d233e8d0

Use dht tracker in torrent announce

view details

push time in 22 days

issue commentrust-lang/rust

Missed optimization: loop with increasing index doesn't elide bounds check

https://github.com/rust-lang/rust/issues/65969 is similar but more complex scenario of this.

paolobarbolini

comment created time in 22 days

push event95th/btrs

Gurwinder Singh

commit sha 61365935300f16d64f94a5501cf1970f01ffc4cb

refactor: get info only once

view details

push time in 22 days

startedByron/git-oxide

started time in 23 days

issue closed95th/btrs

DHT

Support base features described in BEP-5:

  • [x] BOOTSTRAP
  • [x] FIND_NODE
  • [x] GET_PEERS
  • [x] PING
  • [x] ANNOUNCE_PEER

closed time in 23 days

95th

delete branch 95th/btrs

delete branch : ping

delete time in 23 days

push event95th/btrs

Gurwinder Singh

commit sha 76a4b4a784be3383a2ef45b79eb2c6ace0c23173

start ping traversal

view details

Gurwinder Singh

commit sha 9490786dd0daa2d182be2d26098b3ea549ab48bc

call ping in periodic table refresh

view details

Gurwinder Singh

commit sha 641f0f069e8d248f37865e2bed1118772db48bb2

fix

view details

Gurwinder Singh

commit sha a3f7d2a027419e145215885d4aa67769326ebb69

Merge pull request #11 from 95th/ping Ping

view details

push time in 23 days

PR merged 95th/btrs

Ping
+147 -19

0 comment

7 changed files

95th

pr closed time in 23 days

push event95th/btrs

Gurwinder Singh

commit sha 641f0f069e8d248f37865e2bed1118772db48bb2

fix

view details

push time in 23 days

PR opened 95th/btrs

Ping
+147 -19

0 comment

7 changed files

pr created time in 23 days

push event95th/btrs

Gurwinder Singh

commit sha 9490786dd0daa2d182be2d26098b3ea549ab48bc

call ping in periodic table refresh

view details

push time in 23 days

create barnch95th/btrs

branch : ping

created branch time in 24 days

push event95th/btrs

Gurwinder Singh

commit sha ec44557742d4cf11444a1b8009460e316ecf5a37

dht: update routing table maintenance logic

view details

push time in 24 days

push event95th/btrs

Gurwinder Singh

commit sha 27375a52be8bd9fe74b081275d3488424a685692

Fix bugs

view details

push time in 24 days

push event95th/btrs

Gurwinder Singh

commit sha f8e82a46d88b2b03da11784e8d7332a42832e67e

dht: Fix hanging in infinite loop

view details

push time in 24 days

push event95th/btrs

Gurwinder Singh

commit sha e2867af31333445a6a91d2df1944fb39e75ce298

dht: refactor

view details

push time in 24 days

delete branch 95th/btrs

delete branch : announce

delete time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha df1020cd9f8c992fc3742dc0fbd1d2692c432c28

dht: announce

view details

Gurwinder Singh

commit sha 752f2e9e854fffd88fed6402620558977254a4e4

refactor

view details

Gurwinder Singh

commit sha 27395698bcac21b231b2c72d0e25644a62329c62

Merge pull request #10 from 95th/announce Implement Announce

view details

push time in 25 days

PR merged 95th/btrs

Implement Announce

Implement Announce Traversal base on Get Peers Traversal

+122 -23

0 comment

6 changed files

95th

pr closed time in 25 days

PR opened 95th/btrs

Implement Announce

Implement Announce Traversal base on Get Peers Traversal

+122 -23

0 comment

6 changed files

pr created time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 752f2e9e854fffd88fed6402620558977254a4e4

refactor

view details

push time in 25 days

create barnch95th/btrs

branch : announce

created branch time in 25 days

startedzserge/tinysh

started time in 25 days

issue openedrust-unofficial/patterns

Link outdated

In Idiom 5, the link is outdated.

TODO trait to separate visibility of methods from visibility of data (https://github.com/sfackler/rust-postgres/blob/master/src/lib.rs#L1400)

created time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 5cffc92d0f420c017c32e1b263ec89c93d3c90be

dht: Delete dead code

view details

push time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha fd7f6f5d32419cf593304a1543340db498be1b5b

dht: split server into modules

view details

push time in 25 days

delete branch 95th/btrs

delete branch : traversal

delete time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 4c7e78158449d6302704bf096e0638dec0b7702a

Start traversal

view details

Gurwinder Singh

commit sha 0676ec8016159f9f90e758f5fc880c11cf92aa79

dht: call get_peers from server

view details

Gurwinder Singh

commit sha 46684035a3276bea91f3ca4c9888421e124d4ab7

dht: include get_peers in main loop instead of blocking on its own

view details

Gurwinder Singh

commit sha 72daf49029f7ffab31c4e98c8d03e3452119c8e0

dht: BootstrapTraversal

view details

Gurwinder Singh

commit sha 25e8fa1fb7b56fdb9e77ec67d9fa607b76b2b056

dht: logs

view details

Gurwinder Singh

commit sha 50782cbd516fc54cd01f7f5282b17da4b1afd21a

Add IntoIterator impl for Dict/List decoder. Read peers from get_peers response

view details

Gurwinder Singh

commit sha 77a9ca9d2bdb0e4aac9d7d4d3294c9d918999a4a

Merge pull request #9 from 95th/traversal DHT Traversal

view details

push time in 25 days

PR merged 95th/btrs

DHT Traversal

Implement GetPeers and Bootstrap using separate traversal structs

+541 -138

0 comment

6 changed files

95th

pr closed time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 50782cbd516fc54cd01f7f5282b17da4b1afd21a

Add IntoIterator impl for Dict/List decoder. Read peers from get_peers response

view details

push time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 25e8fa1fb7b56fdb9e77ec67d9fa607b76b2b056

dht: logs

view details

push time in 25 days

PR opened 95th/btrs

Traversal

Implement GetPeers and Bootstrapp using separate traversal structs

+493 -137

0 comment

5 changed files

pr created time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 72daf49029f7ffab31c4e98c8d03e3452119c8e0

dht: BootstrapTraversal

view details

push time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 46684035a3276bea91f3ca4c9888421e124d4ab7

dht: include get_peers in main loop instead of blocking on its own

view details

push time in 25 days

push event95th/btrs

Gurwinder Singh

commit sha 0676ec8016159f9f90e758f5fc880c11cf92aa79

dht: call get_peers from server

view details

push time in 25 days

create barnch95th/btrs

branch : traversal

created branch time in a month

push event95th/btrs

Gurwinder Singh

commit sha f651adc8689c1cd23476313bc7c80a2565d70ae1

dht: fix error msg

view details

push time in a month

push event95th/btrs

Gurwinder Singh

commit sha 3c45a7bb47e5ab34f4354cb065dee4f30a65c4ba

dht: fix tests

view details

push time in a month

push event95th/btrs

Gurwinder Singh

commit sha 1407a21b4a87786b539c65fec750c844d361a7a9

dht: refactor msg

view details

push time in a month

push event95th/btrs

Gurwinder Singh

commit sha 38a6e1267c13a6fd2af964d3d6c05c0c7496ec98

dht: refactor

view details

push time in a month

fork 95th/tox

toxcore implementation in Rust

fork in a month

startedtox-rs/tox

started time in a month

issue openedrust-lang/rust

Unclear lifetime error in closure producing a future

Code:

use std::future::Future;

pub async fn bar() {
    foo(|x| baz(x)).await;
}

pub async fn baz(x: &u8) -> bool {
    if *x == 1 {
        false
    } else {
        true
    }
}

pub async fn foo<F, T>(f: F) -> bool
where
    F: Fn(&u8) -> T,
    T: Future<Output = bool>,
{
    f(&32).await
}

produces following error:

error: lifetime may not live long enough
 --> src/lib.rs:4:13
  |
4 |     foo(|x| baz(x)).await;
  |          -- ^^^^^^ returning this value requires that `'1` must outlive `'2`
  |          ||
  |          |return type of closure is impl std::future::Future
  |          has type `&'1 u8`

Is this error correct? If yes, why?

following also doesn't work:

pub async fn bar() {
    foo(baz).await;
}

error (still not clear):

error[E0271]: type mismatch resolving `for<'r> <for<'_> fn(&u8) -> impl std::future::Future {baz} as std::ops::FnOnce<(&'r u8,)>>::Output == _`
  --> src/lib.rs:4:5
   |
4  |     foo(baz).await;
   |     ^^^ expected bound lifetime parameter, found concrete lifetime
...
15 | pub async fn foo<F, T>(f: F) -> bool
   |              --- required by a bound in this
16 | where
17 |     F: Fn(&u8) -> T,
   |                   - required by this bound in `foo`

meta:

$ rustc --version --verbose
rustc 1.45.0 (5c1f21c3b 2020-07-13)
binary: rustc
commit-hash: 5c1f21c3b82297671ad3ae1e8c942d2ca92e84f2
commit-date: 2020-07-13
host: x86_64-unknown-linux-gnu
release: 1.45.0
LLVM version: 10.0

created time in a month

push event95th/btrs

Gurwinder Singh

commit sha 0ea00f80e46680aa74f154e77f9e63122811c62b

dht: loop inside announce fn

view details

push time in a month

push event95th/btrs

Gurwinder Singh

commit sha 4e2d15ebc298ca07e77829e8fcf9e0522127937d

fix doctests

view details

push time in a month

push event95th/btrs

Gurwinder Singh

commit sha 7c387cd5aace0f8139e4f1b14b5bfe3594b59615

Use tokens for announce

view details

Gurwinder Singh

commit sha a2d7032c23196721d5f19cbc7f19f695b4fd8913

ben: accept str key for Dict decoder

view details

push time in a month

push event95th/btrs

Gurwinder Singh

commit sha eeea3dfaf13997e07493e22608ea6b6c292e57f1

dht: Add initial client

view details

push time in a month

PR opened swc-project/swc

spack: remove_item is deprecated

Vec::remove_item is deprecated in https://github.com/rust-lang/rust/pull/73539

+4 -1

0 comment

1 changed file

pr created time in a month

push event95th/swc

강동윤

commit sha 66d42adf7eddb9af4fb664c5297c2adb7fc0805c

spack: modules (#848) spack: - Better es6 module detection - Recursive merging - Support for common js modules - Support for node js core modules - Inject helpers swc_ecma_transforms: - Fix dce

view details

강동윤

commit sha ff440157a0a7cba215d99caad3c92d11a6d51ad1

Fix regenerator (#851) swc_ecma_transforms: - Fix regenerator scoping issue.

view details

강동윤

commit sha 92ce0231714e79a58bf12d4252fa0b2c0d54dd39

Handle catch parameters in regenerator (#854)

view details

강동윤

commit sha fe260a02e2bd7e622aa208d3987dc58ecff08bd5

ES2020 (#855) Adapt es2020. API is not changed, but config for merged proposals are now noop.

view details

강동윤

commit sha cae9286af09f35a43a0dd11c0f58030001c3579a

Bump versions

view details

강동윤

commit sha a9adb0a2084524f7fc21aa5edbaa05ff7dba6ff8

Fix parsing of comment (#857)

view details

Yusuke Tanaka

commit sha 403f0810585a0fb32da8fc1dc7c1f3ee9160ee18

Fix typo (#860)

view details

RickEvry

commit sha 67bb56801889fbaf3e753e093b630f67bab0c88a

Fixed wasm compilation errors. (#869) Co-authored-by: rickevry <rickard@rickardnilsson.com>

view details

강동윤

commit sha f500e9528cc253a52d56450dd5d3faa9b5c884f6

Parser for TypeScript 4.0 (#867) - Allow rest in non-last elements in tuple type - Allow labelled ts type element in tuple type - More operators

view details

RickEvry

commit sha 901b32fa05140e8e27399800ec800850c7ace649

Added example that shows how to run swc in the browser. Instructions can be found in swc/wasm/example/readme.txt (#871) Co-authored-by: rickevry <rickard@rickardnilsson.com>

view details

강동윤

commit sha 38adc49e7ec6489016823e35fe74027786df4e5f

Bugfixes (#873) swc_common: - Fix new_source_file swc_ecma_parser: - Fix parsing of paren expr in lhs of an assignment

view details

강동윤

commit sha a2369be5b20d506478dacca782e5aea274100799

Fix random panic (#876)

view details

강동윤

commit sha c0917839a5dd6685fb14203fd5f4c087785ff89c

Add empty to class member (#875)

view details

강동윤

commit sha 135149d6a81ddebf4f7e0f5361ba88ea847ce6af

Bump version

view details

David Sherret

commit sha d4ede122fcc54b44d81442d07769261f349adc30

Fix span of MethodProp (#877) - Fix span of MethodProp (needs to include async keyword). Co-authored-by: 강동윤 <kdy1997.dev@gmail.com>

view details

Gurwinder Singh

commit sha 344a16aa2efe9086b768dc883ba791e428e60320

spack: remove_item is deprecated

view details

push time in a month

startedctz/rustls

started time in a month

push event95th/btrs

Gurwinder Singh

commit sha 7c2d461e079395ae611f0714d710678d573a0b41

Put upper limit on extra nodes

view details

push time in a month

more