Skip to content

Commit ded30f8

Browse files
committed
formatting and readme changes
1 parent edbac92 commit ded30f8

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
A Python-3 (CPython >= 3.5.0) Interpreter written in Rust :snake: :scream: :metal:.
33

44
[![Build Status](https://travis-ci.org/RustPython/RustPython.svg?branch=master)](https://travis-ci.org/RustPython/RustPython)
5-
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
66

77
# Usage
88

@@ -33,6 +33,7 @@ Or use the interactive shell:
3333
- `src`: using the other subcrates to bring rustpython to life.
3434
- `docs`: documentation (work in progress)
3535
- `py_code_object`: CPython bytecode to rustpython bytecode convertor (work in progress)
36+
- `wasm`: Binary crate and resources for WebAssembly build
3637
- `tests`: integration test snippets
3738

3839
# Contributing
@@ -67,7 +68,7 @@ $ cargo test --all
6768

6869
## Setup
6970

70-
Using `rustup` add the compile target `wasm32-unknown-emscripten`. To do so you will need to have [rustup](https://rustup.rs/).
71+
Using `rustup` add the compile target `wasm32-unknown-emscripten`. To do so you will need to have [rustup](https://rustup.rs/) installed.
7172

7273
```bash
7374
rustup target add wasm32-unknown-emscripten

wasm/src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
extern crate rustpython_parser;
22
extern crate rustpython_vm;
33

4-
use rustpython_vm::pyobject::{PyResult};
4+
use rustpython_vm::compile;
5+
use rustpython_vm::pyobject::PyResult;
56
use rustpython_vm::VirtualMachine;
6-
use rustpython_vm::{compile};
7-
87

98
fn main() {
109
let mut vm = VirtualMachine::new();
@@ -20,7 +19,6 @@ fn _run_string(vm: &mut VirtualMachine, source: &str, source_path: Option<String
2019
}
2120

2221
fn run_command(vm: &mut VirtualMachine, mut source: String) -> PyResult {
23-
2422
// This works around https://github.com/RustPython/RustPython/issues/17
2523
source.push_str("\n");
2624
_run_string(vm, &source, None)

0 commit comments

Comments
 (0)