You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
-52Lines changed: 0 additions & 52 deletions
Original file line number
Diff line number
Diff line change
@@ -59,19 +59,6 @@ Documentation HTML files can then be found in the `target/doc` directory.
59
59
60
60
If you wish to update the online documentation, push directly to the `release` branch (or ask a maintainer to do so). This will trigger a Travis build that updates the documentation and WebAssembly demo page.
61
61
62
-
# Code organization
63
-
64
-
-`parser/src`: python lexing, parsing and ast
65
-
-`vm/src`: python virtual machine
66
-
-`builtins.rs`: Builtin functions
67
-
-`compile.rs`: the python compiler from ast to bytecode
68
-
-`obj`: python builtin types
69
-
-`src`: using the other subcrates to bring rustpython to life.
70
-
-`docs`: documentation (work in progress)
71
-
-`py_code_object`: CPython bytecode to rustpython bytecode converter (work in progress)
72
-
-`wasm`: Binary crate and resources for WebAssembly build
73
-
-`tests`: integration test snippets
74
-
75
62
# Contributing
76
63
77
64
Contributions are more than welcome, and in many cases we are happy to guide contributors through PRs or on gitter.
@@ -88,40 +75,6 @@ You can also simply run
88
75
`./whats_left.sh` to assist in finding any
89
76
unimplemented method.
90
77
91
-
# Testing
92
-
93
-
To test rustpython, there is a collection of python snippets located in the
94
-
`tests/snippets` directory. To run those tests do the following:
95
-
96
-
```shell
97
-
$ cd tests
98
-
$ pipenv install
99
-
$ pipenv run pytest -v
100
-
```
101
-
102
-
There also are some unit tests, you can run those with cargo:
103
-
104
-
```shell
105
-
$ cargo test --all
106
-
```
107
-
108
-
# Profiling
109
-
110
-
To profile rustpython, simply build in release mode with the `flame-it` feature.
111
-
This will generate a file `flamescope.json`, which you can then view at
112
-
https://speedscope.app.
113
-
114
-
```sh
115
-
$ cargo run --release --features flame-it script.py
116
-
$ cat flamescope.json
117
-
{<json>}
118
-
```
119
-
120
-
You can also pass the `--output-file` option to choose which file to output to
121
-
(or stdout if you specify `-`), and the `--output-format` option to choose if
122
-
you want to output in the speedscope json format (default), text, or a raw html
123
-
viewer (currently broken).
124
-
125
78
# Using a standard library
126
79
127
80
As of now the standard library is under construction. You can
@@ -143,11 +96,6 @@ the [ouroboros library](https://github.com/pybee/ouroboros).
143
96
144
97
[See this doc](wasm/README.md)
145
98
146
-
# Code style
147
-
148
-
The code style used is the default [rustfmt](https://github.com/rust-lang/rustfmt) codestyle. Please format your code accordingly.
149
-
We also use [clippy](https://github.com/rust-lang/rust-clippy) to detect rust code issues.
0 commit comments