Skip to content

Cannot load data into Rust #78

@martinellison

Description

@martinellison

I am trying to load the datasworn data into a Rust program using the json-typedef/rust/mod.rs module, but all I get is an error premature end of input.

The code in error is let rules: datasworn::RulesPackage = serde_json::from_value(rules_value). The earlier code loads datasworn/classic/classic.json and converts it to a serde_json::Value correctly. datasworn points to a copy of the datasworn module.

Has anyone ever got this working correctly? Can anyone advise what I should be doing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions