Comments (1)
Well, this might be not a big deal since extern crate
and macro_use
will essentially go away in Rust 2018 edition. I successfully run Rust Beta (1.30) and use use
statement to import macros:
$ rustup run beta evcxr
Welcome to evcxr. For help, type :help
>> extern crate serde;
>> extern crate serde_derive;
>> extern crate serde_json;
>> use serde_derive::{Serialize, Deserialize};
>> #[derive(Debug, Serialize, Deserialize)] pub struct Point { pub x: i32, pub y: i32 }
>> let p1 = Point { x: 10, y: 20 };
>> p1
Point { x: 10, y: 20 }
>> serde_json::to_string(&p1)
Ok("{\"x\":10,\"y\":20}")
from evcxr.
Related Issues (20)
- Reducing startup time by reusing the pre-compiled directory. HOT 6
- println! does not preserve the order of lines HOT 4
- Output error with comment. HOT 2
- Trying to build a reproducible environment with Nix HOT 14
- Out of order print in the output HOT 4
- New name proposal: Ruins (RUst INteractive Shell) HOT 6
- Hashbrown's `HashMap::get` returns `None` although the key exists HOT 14
- `init.evcxr` and `prelude.rs` placed in the suggested MacOS location doesn't seem to do anything HOT 2
- Listing current REPL deps and manifest from within REPL? HOT 1
- printing colored outputs in the repl? HOT 3
- Double Ctrl-C killing repl unexpectedly HOT 1
- is sccache working properly? HOT 2
- Recompiling each time after I restart the kernel in Linux. HOT 4
- Is it possible to print out the documentation? HOT 7
- The error doesn't print as expected. HOT 2
- not compatible with latest rust 1.72.0 HOT 8
- Cached tokio runtime after panic HOT 1
- Cannot configure (persist) logging configuration HOT 38
- Rust kernel can't work HOT 3
- Slow execution speed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from evcxr.