Giter VIP home page Giter VIP logo

corepack's People

Contributors

1tgr avatar astraw avatar jrasky avatar karrq avatar pratyush avatar woyten avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

corepack's Issues

reached the type-length limit while instantiating

Trying to compile this code

#[macro_use]
extern crate serde_derive;
extern crate corepack;

use corepack::to_bytes;

#[derive(Serialize)]
pub enum TreeElement {
    Value(u64),
    Node(Vec<TreeElement>)
}

fn main() {
    let n = TreeElement::Node(vec![]);
    let f = to_bytes(n);
    print!("{:?}", f);
}

I received an error: reached the type-length limit while instantiating <corepack::Serializer<F>><[closure@DefId(11/1:54 ~ corepack[8323...

Increasing of the type_length_limit parameter doesn't solve the problem.
It seems that corepack doesn't support recursive data structures.

serde 0.9 branch doesn't serialize Option correctly

I believe there's a bug with serializing Option types on the serde 0.9 branch. Below is a minimal example that should trigger this:

extern crate corepack;
extern crate serde;

fn main() {
    let node = Some(7);
    let encoded = corepack::to_bytes(node).unwrap();
    let value: Result<Option<u64>, corepack::error::Error> = corepack::from_bytes(&encoded);
    println!("value: {:?}", value);
}

EDIT: minimized example further.

New release due to byteorder dependency

0.4.0 which is on crates.io depends on byteorder ~1.2.3, while the git master depends on any minor version of 1.0. The current release doesn't work in combination with tungstenite, which depends on byteorder 1.3.2 upwards.

The git master currently works.

Can you push a new release to crates.io?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.