profile
viewpoint
messense messense @alipay Shanghai, China https://keybase.io/messense Python Backend Developer at day, Rustacean at night.

aaugustin/websockets 2983

Library for building WebSocket servers and clients in Python

bosondata/badwolf 87

Docker based continuous integration, continuous deployment and code lint review system for BitBucket

andelf/rust-darts 34

Double Array Trie in Rust

messense/APUE-Learning 20

Learning Advanced Programming in the UNIX Environment

bosondata/react-native-geetest 18

Geetest binding for react-native

messense/cjieba-py 12

Python cffi binding to CppJieba

messense/bosonnlp-rs 11

BosonNLP SDK for Rust

bosondata/crfsuite-rs 10

Rust binding to crfsuite

Lynskylate/serde_hessian 6

A Hessian serialize/deserialize rust implemention.

messense/caiyun 6

字幕组资源离线下载至百度云盘 (Not Maintained)

startedmoriturus/ktra

started time in a day

PullRequestEvent

PR closed sticnarf/tokio-socks

Upgrade tokio to 0.3

Closes #26

+24 -37

0 comment

6 changed files

messense

pr closed time in 2 days

push eventmessense/tokio-socks

messense

commit sha 1b4632001cd85ae6eb793cee8641deb0124d15bd

Upgrade tokio to 0.3

view details

push time in 2 days

PR opened sticnarf/tokio-socks

Upgrade tokio to 0.3

Closes #26

+16 -29

0 comment

4 changed files

pr created time in 2 days

create barnchmessense/tokio-socks

branch : tokio-0-3

created branch time in 2 days

fork messense/tokio-socks

Asynchronous SOCKS proxy support for Rust.

fork in 2 days

startedsteffengy/winauth-rs

started time in 2 days

startedDevolutions/sspi-rs

started time in 2 days

startedDevolutions/siquery-rs

started time in 2 days

startedDevolutions/picky-rs

started time in 3 days

delete branch messense/rasn

delete branch : choice-attr

delete time in 3 days

PR opened XAMPPRocky/rasn

Add a new `#[rasn(choice)]` field attribute

Fixes #4

+50 -9

0 comment

4 changed files

pr created time in 3 days

create barnchmessense/rasn

branch : choice-attr

created branch time in 3 days

fork messense/rasn

A Safe #[no_std] ASN.1 Codec Framework

fork in 3 days

startedwindy1/zeroconf-rs

started time in 4 days

starteddeislabs/akri

started time in 4 days

startedEmbarkStudios/rust-gpu

started time in 4 days

startedSergioBenitez/Figment

started time in 6 days

issue commentconfluentinc/confluent-kafka-go

Paused partitions must be resumed after a rebalance

Is this issue fixed in librdkafka?

eliaslevy

comment created time in 7 days

issue commentXAMPPRocky/rasn

How to deal with CHOICE-style enums do not allow implicit tagging.

The second example is failing because encode is calling encode_with_tag, it also fails with choice, manual Encode impl fixes it.

messense

comment created time in 7 days

issue openedXAMPPRocky/rasn

How to deal with CHOICE-style enums do not allow implicit tagging.

use rasn::{types::*, *};

#[test]
fn choice() {
    #[derive(AsnType, Clone, Debug, Encode, Decode, PartialEq)]
    struct ChoiceField {
        choice: VecChoice,
    }

    #[derive(AsnType, Clone, Debug, Decode, Encode, PartialEq)]
    #[rasn(choice)]
    enum VecChoice {
        #[rasn(tag(1))]
        Bar(Vec<bool>),
        #[rasn(tag(2))]
        Foo(Vec<OctetString>),
    }
    let bar = ChoiceField { choice: VecChoice::Bar(vec![true]) };
    let foo = ChoiceField { choice: VecChoice::Foo(vec![OctetString::from(vec![1, 2, 3, 4, 5])]) };
    assert_eq!(foo, ber::decode(&ber::encode(&foo).unwrap()).unwrap());
    assert_eq!(bar, ber::decode(&ber::encode(&bar).unwrap()).unwrap());
}

errors with thread 'choice' panicked at 'called Result::unwrap() on an Err value: Custom { msg: "CHOICE-style enums do not allow implicit tagging." }', tests/derive.rs:67:52

if impl Decode manually for ChoiceField:

use rasn::{types::*, *};

#[derive(AsnType, Clone, Debug, Encode, PartialEq)]
    struct ChoiceField {
        choice: VecChoice,
    }

    impl Decode for ChoiceField {
        fn decode_with_tag<D: rasn::Decoder>(decoder: &mut D, tag: Tag) -> Result<Self, D::Error> {
            let mut decoder = decoder.decode_sequence(tag)?;
            Ok(Self {
                choice: <_>::decode(&mut decoder)?,
            })
        }
    }

    #[derive(AsnType, Clone, Debug, Decode, Encode, PartialEq)]
    #[rasn(choice)]
    enum VecChoice {
        #[rasn(tag(1))]
        Bar(Vec<bool>),
        #[rasn(tag(2))]
        Foo(Vec<OctetString>),
    }
    let bar = ChoiceField { choice: VecChoice::Bar(vec![true]) };
    let foo = ChoiceField { choice: VecChoice::Foo(vec![OctetString::from(vec![1, 2, 3, 4, 5])]) };
    assert_eq!(foo, ber::decode(&ber::encode(&foo).unwrap()).unwrap());
    assert_eq!(bar, ber::decode(&ber::encode(&bar).unwrap()).unwrap());

then it errors with thread 'choice' panicked at 'called Result::unwrap() on an Err value: Custom { msg: "CHOICE-style enums do not allow implicit tagging." }', tests/derive.rs:66:52

So what's the proper way to deal with it? Thanks!

created time in 7 days

delete branch messense/rasn

delete branch : nom-0-6-beta

delete time in 8 days

startedXAMPPRocky/rasn

started time in 8 days

push eventmessense/rasn

messense

commit sha f4f67e1581b7186ea84c2e5b92eaf140625e3063

Upgrade bitvec to 0.19.3

view details

push time in 8 days

PR opened XAMPPRocky/rasn

Upgrade nom to 0.6.0-beta1

Fixes #2

+48 -23

0 comment

4 changed files

pr created time in 8 days

create barnchmessense/rasn

branch : nom-0-6-beta

created branch time in 8 days

fork messense/rasn

A Safe #[no_std] ASN.1 Codec Framework

fork in 8 days

pull request commentapache/rocketmq-client-python

[ISSUE #99]Add a function which shows how to use rocketmq in multi-threaded scen…

Producer should be reused, not start() and shutdown() repeatedly.

For example

from concurrent.futures import ThreadPoolExecutor, wait
from rocketmq.client import Producer, Message

producer = Producer('PID-XXX')
producer.set_name_server_address('127.0.0.1:9876')

def send_msg():
    msg = Message('YOUR-TOPIC')
    msg.set_keys('XXX')
    msg.set_tags('XXX')
    msg.set_body('XXXX')
    ret = producer.send_sync(msg)
    print(ret.status, ret.msg_id, ret.offset)


def main():
    executor = ThreadPoolExecutor()
    # start producer
    producer.start()
    # submit tasks
    futures = []
    for _ in range(10):
        futures.append(executor.submit(send_msg))
    wait(futures)
    producer.shutdown()

if __name__ == '__main__':
    main()
tom0392

comment created time in 8 days

create barnchmessense/rust-musl-cross

branch : feature/cherry-pick

created branch time in 8 days

startedPSeitz/lz4_flex

started time in 8 days

pull request commentapache/rocketmq-client-python

[ISSUE #99]Add a function which shows how to use rocketmq in multi-threaded scen…

No real world applications should do this kind of hack.

tom0392

comment created time in 8 days

push eventwechatpy/wechatpy

messense

commit sha 7679eba736ebe78b43b378ee0a353d069b248545

Add Python 3.9 to CI

view details

push time in 10 days

startedanordal/shellharden

started time in 10 days

delete branch messense/tokio

delete branch : patch-1

delete time in 11 days

push eventmessense/rust-musl-cross

messense

commit sha a9715b7bac0a69f2a47a88718a9f94dfea61d2a2

Try GCC 9.2.0

view details

push time in 11 days

push eventmessense/rust-musl-cross

messense

commit sha 737922ebe4d386246c8d3d9bec80faebb4d35a60

Update Travis CI badge url

view details

push time in 11 days

push eventmessense/rust-musl-cross

messense

commit sha 1d658e162d1ea15f0a3a18373419a543dcb306d5

Update some openssl build args

view details

push time in 11 days

push eventmessense/rust-musl-cross

messense

commit sha 0523fb755e428b3f15562988125542b7283228c9

Change arm* OPENSSL_ARCH to linux-armv4

view details

push time in 11 days

PR opened tokio-rs/tokio

Update version to 0.3 in module documentation

Motivation

It currently says 0.2

Solution

Change to 0.3

+3 -3

0 comment

1 changed file

pr created time in 11 days

push eventmessense/tokio

messense

commit sha 8b704a5f64df40fa39ea677d063e54570669d5ae

Update version to 0.3 in module documentation

view details

push time in 11 days

fork messense/tokio

A runtime for writing reliable asynchronous applications with Rust. Provides I/O, networking, scheduling, timers, ...

https://tokio.rs

fork in 11 days

delete branch messense/rocketmq-rs

delete branch : tokio-0-3

delete time in 11 days

push eventmessense/rocketmq-rs

messense

commit sha caf83c0019fa6f0655ca07eebb3dbc8dc41c4d63

Upgrade tokio to 0.3

view details

messense

commit sha f5a306bcd3b3f0f3bd9aab644c110beb40769ba1

Merge pull request #9 from messense/tokio-0-3 Upgrade tokio to 0.3

view details

push time in 11 days

PR merged messense/rocketmq-rs

Upgrade tokio to 0.3
+94 -31

1 comment

2 changed files

messense

pr closed time in 11 days

PR opened messense/rocketmq-rs

Upgrade tokio to 0.3
+94 -31

0 comment

2 changed files

pr created time in 11 days

create barnchmessense/rocketmq-rs

branch : tokio-0-3

created branch time in 11 days

push eventmessense/rust-musl-cross

Hugues Bouvier

commit sha c8c5f85e790c73341d5c63b100f7318c0ab0c792

fix arm build

view details

messense

commit sha 30be4dd0ad7ef0589f075cb6a155adfd48cd635e

Merge pull request #29 from huguesBouvier/fix_arm fix arm build

view details

messense

commit sha 915cd07a5e3863d8e5ca1a76ca96ed4e6b53be1d

Upgrade OpenSSL to 1.1.1h

view details

push time in 11 days

pull request commentmessense/rust-musl-cross

fix arm build

Thanks!

huguesBouvier

comment created time in 11 days

push eventmessense/rust-musl-cross

Hugues Bouvier

commit sha c8c5f85e790c73341d5c63b100f7318c0ab0c792

fix arm build

view details

messense

commit sha 30be4dd0ad7ef0589f075cb6a155adfd48cd635e

Merge pull request #29 from huguesBouvier/fix_arm fix arm build

view details

push time in 11 days

PR merged messense/rust-musl-cross

fix arm build enhancement

Fixing build for arm

Closes #27

+4 -3

0 comment

2 changed files

huguesBouvier

pr closed time in 11 days

issue closedmessense/rust-musl-cross

Upgrade rust to 1.46.0 ?

Would you please upgrade rust to the latest?

arm-musleabihf is using 1.40.0

closed time in 11 days

abcfy2
PullRequestEvent

PR closed messense/rust-musl-cross

fix arm build

Fixing build for arm

+4 -3

0 comment

2 changed files

huguesBouvier

pr closed time in 11 days

startedunicode-org/icu4x

started time in 11 days

startedzalando-incubator/kube-metrics-adapter

started time in 12 days

PullRequestReviewEvent

created tagmessense/fasttext-wheel

tagv0.9.2-python39

Build and upload fastText Python wheels to PyPI

created time in 15 days

push eventmessense/fasttext-wheel

messense

commit sha 31ab8f104afd55a6c520a86f7152dfddc9472696

pypa/gh-action-pypi-publish action skip_existing: true

view details

push time in 15 days

startedmengshukeji/Luckysheet

started time in 16 days

startedsassman/t-rec-rs

started time in 16 days

push eventmessense/fasttext-wheel

messense

commit sha eef72dd72705f3c66a2de0db74b65ed60429bce4

Add Python 3.9 support

view details

push time in 17 days

created tagmessense/rjieba-py

tagv0.1.1-cp39

jieba-rs Python binding

created time in 17 days

delete tag messense/rjieba-py

delete tag : v0.1.1-cp39

delete time in 17 days

push eventmessense/rjieba-py

messense

commit sha 45ed934404f27e27976086c967f08fb13ea7ce43

Enable Python 3.9 on CI

view details

push time in 17 days

created tagmessense/rjieba-py

tagv0.1.1-cp39

jieba-rs Python binding

created time in 17 days

push eventmessense/rjieba-py

messense

commit sha 2e14d8f6ce7e59da5f656b36731f5a2d813f306f

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha db27efece5684f179b7aca2fcf34d3e59995863d

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha 4bdcb7f55f1e6d6b283166c1c955d1dbd5cb0266

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha 840e370d62dad303be8062855f58e7689e7a6435

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha 337502484491266b486f86a2881a984c8fac95b8

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha 6ccd052c0477f4f90648bc83cbcbdbe8c542f27a

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha 6c3bdfe562ebeea564ee3366f396b1ef9074acf5

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rjieba-py

messense

commit sha 7e9d2c496fe40ef33003e9a45c2eb7ee0e40cb9a

Enable Python 3.9 on CI

view details

push time in 17 days

push eventmessense/rocketmq-rs

messense

commit sha b57c7e4d5c2e95ebac615175ca55b75993e08ff1

Update base64 to 0.13

view details

push time in 18 days

startedstoryfeet/clap_conf

started time in 21 days

startedsonos/ffi-convert-rs

started time in 22 days

issue commentsnipsco/crfsuite-rs

is there a way to train a model using this crate?

Try https://github.com/bosondata/crfsuite-rs

infinite-Joy9l

comment created time in 22 days

push eventmessense/if-addrs

messense

commit sha c464fe65bb0ad8122fa06a95a4456905f1081db6

rm rustfmt.toml

view details

push time in 22 days

pull request commentmessense/if-addrs

Support rust version 1.40.0

Missing the GitHub notification somehow, thanks!

willstott101

comment created time in 24 days

push eventmessense/if-addrs

messense

commit sha e9417f095a84be87c7d05b0d932a1eb0e1b802c2

Bump version to 0.6.4

view details

push time in 24 days

created tagmessense/if-addrs

tagv0.6.4

Retrieve IP addresses for all interfaces. Posix & Windows

created time in 24 days

push eventmessense/if-addrs

Will Stott

commit sha 405410335ece6ffabf491e17ba6ea4a871964eaa

README: Add link to crate

view details

messense

commit sha 35d08d1e68584cd6f1767a287dc512225a152ac6

Merge pull request #10 from willstott101/patch-1 README: Add link to crate

view details

push time in 24 days

PR merged messense/if-addrs

README: Add link to crate

crates.io links to the repo, so may as-well go the other way too :)

+1 -1

0 comment

1 changed file

willstott101

pr closed time in 24 days

push eventmessense/if-addrs

Will Stott

commit sha 54a609a7bd329a183edef2fdbada081982d8d28e

Support rust version 1.40.0

view details

messense

commit sha 425d8eeba22af3dcac9343240224a70e15ba3a29

Merge pull request #9 from willstott101/master Support rust version 1.40.0

view details

push time in 24 days

PR merged messense/if-addrs

Support rust version 1.40.0

By testing on Rust version 1.40.0 I can make sure this package is suitable for use within librespot.

Would you be willing to make 1.40.0 the minimum supported rust version for a while?

+6 -5

0 comment

2 changed files

willstott101

pr closed time in 24 days

PullRequestReviewEvent

Pull request review commentpyca/cryptography

shrink bindings more

 FUNCTIONS = """ RSA *RSA_new(void); void RSA_free(RSA *);-int RSA_size(const RSA *); int RSA_generate_key_ex(RSA *, int, BIGNUM *, BN_GENCB *); int RSA_check_key(const RSA *); RSA *RSAPublicKey_dup(RSA *); int RSA_blinding_on(RSA *, BN_CTX *);-int RSA_public_encrypt(int, const unsigned char *, unsigned char *,-                       RSA *, int);-int RSA_private_encrypt(int, const unsigned char *, unsigned char *,-                        RSA *, int);-int RSA_public_decrypt(int, const unsigned char *, unsigned char *,

This breaks our application when upgrading to newer cryptography version, we are using this function to interoperate with some odd Java services.

reaperhulk

comment created time in 24 days

PullRequestReviewEvent

Pull request review commentwechatpy/wechatpy

feat: payscore api#578

+# payscore

这个 REAMDE.md 可以删掉,API 文档放到 docs/ 里面用 Sphinx 自动生成。

kangour

comment created time in 24 days

PullRequestReviewEvent

issue commentwechatpy/wechatpy

完全移除对 Python 2 的支持

@ldsink 最近有点事没太多空哎,要发还是 v2 吧,v2 之前并没有实际落地的东西感觉不需要跳到 v3。

ldsink

comment created time in 24 days

pull request commentwechatpy/wechatpy

feat: payscore api#578

感觉最好整合到 wechatpy/pay 下面,让那边支持 v3 的 API 调用方式

kangour

comment created time in 24 days

pull request commentwechatpy/wechatpy

feat: payscore api#578

测试需要修复,另外看下能不能增加些测试用例?比方说加解密的部分。

kangour

comment created time in 24 days

starteddeislabs/krustlet

started time in a month

startedkflansburg/krustlet-cri

started time in a month

startedcloudflare/sliceslice-rs

started time in a month

startedstrimzi/strimzi-kafka-operator

started time in a month

startedaspenluxxxy/Lumen

started time in a month

startedsumerc/yappi

started time in a month

more