Commit Graph

89 Commits

Author SHA1 Message Date
Jeong YunWon
7f9a8c1921 Fix clippy error 2020-01-16 00:29:32 +09:00
coolreader18
538e492dda Add #[pyimpl(with(...))] 2020-01-14 23:56:21 -06:00
coolreader18
8a71c7e45d Allow applying pyimpl to a trait 2020-01-14 23:22:50 -06:00
coolreader18
44ed27e8e7 Update to newest syn 2020-01-14 23:22:49 -06:00
Jeong YunWon
8c7e01b4f6 pyslot guess slot name from function name 2020-01-15 10:28:39 +09:00
coolreader18
b29707cda4 Say what file failed to compile in py_compile_bytecode 2020-01-13 19:56:18 -06:00
Noah
80f4f911db Point to the specific function that's not IntoPyFunc for pyimpl 2020-01-13 11:42:31 -06:00
Noah
c9a78bc025 Put diagnostics inside generated macro for result_to_tokens_expr 2020-01-13 11:41:59 -06:00
Noah
468f7ba42a Clarify that the compile error is for python code in py_compile_bytecode 2020-01-13 11:41:20 -06:00
Jeong YunWon
70b63eb758 new_rustfunc -> new_function & new_method to distinguish bindable functions 2020-01-12 18:39:16 +09:00
coolreader18
098532b283 Remove proc-macro-hack and use our own slightly-less-hacky hack 2020-01-10 11:29:27 -06:00
Jeong YunWon
c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00
coolreader18
68e9c12b9a Make time.struct_time a struct_sequence 2019-12-02 18:16:28 -06:00
Windel Bouwman
64ab147f64 Compress bytecode using LZ4 2019-10-07 20:54:22 +02:00
coolreader18
50bfc2b357 Rework the pyclass proc macro a bit 2019-10-02 22:18:29 -05:00
Daniel Alley
a6bf19e549 Change sys.version* attributes to return the Python version
Return the version of Python that we attempt to be compatible with, not
the version numbers of the RustPython interpreter itself.

closes #1396
2019-10-01 16:12:45 -04:00
coolreader18
c46b5b50bd Fix weirdness with type.__new__()/type()/metaclass.__new__() 2019-09-29 23:14:31 -05:00
Noah
d88167bb73 Bump crate versions 2019-09-25 11:57:38 -05:00
coolreader18
a0146c5fa6 Add site module and run it on startup 2019-08-15 15:33:36 -05:00
coolreader18
286051383e impl std::str::FromStr for compile::Mode 2019-08-13 12:35:07 -05:00
coolreader18
4f9a71ff89 Change compile::compile() to take a Mode instead of an &Mode 2019-08-13 12:34:39 -05:00
coolreader18
a72ef1e365 Add frozen package support 2019-07-27 14:27:29 -05:00
Aviv Palivoda
0a6253593f Change compile_dir path to &Path 2019-07-22 18:02:57 +03:00
Aviv Palivoda
64f102450b Fix clippy warning 2019-07-22 17:58:33 +03:00
Aviv Palivoda
7226c925d2 Add hashmap macro to __exports 2019-07-20 22:25:46 +03:00
Aviv Palivoda
c480449420 Fix clippy comments 2019-07-20 22:09:24 +03:00
Aviv Palivoda
5c240d71a8 Support freezing of stdlib 2019-07-20 18:06:46 +03:00
Aviv Palivoda
f271a0e5cf Change py_compile_bytecode to return map 2019-07-20 12:23:56 +03:00
coolreader18
402eb8a48b Merge branch 'master' into redox 2019-07-13 11:46:43 -05:00
Windel Bouwman
ac765a957b Add a settings struct for storage of different settings which influence the VM. 2019-07-13 12:23:53 +02:00
coolreader18
86a6b2a366 Use feature for proc_macro_hack 2019-07-13 00:59:18 -05:00
Windel Bouwman
704b15750e Add optimize flag to ignore assert statements. 2019-07-12 18:41:25 +02:00
coolreader18
76dbd8ebb0 Remove proc-macro-hack 2019-07-11 18:40:07 -05:00
coolreader18
9204035d97 Cover up bare trait objects with a dyn 2019-07-10 09:41:58 -05:00
coolreader18
0893076643 Add #![doc(html_logo_url = ...)] to crates 2019-07-08 23:57:18 -05:00
Windel Bouwman
dbc263cc1b Merge pull request #1114 from mkurnikov/fix-clippy-1.36
Enable clippy in CI
2019-07-07 15:28:43 +02:00
Windel Bouwman
cc24b73031 Set all versions to 0.1.0 2019-07-07 13:04:12 +02:00
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
Windel Bouwman
6a58b76ef7 Change authors to team name. 2019-07-01 21:14:07 +02:00
Windel Bouwman
bedbad284e Change underscore into hyphen 2019-07-01 21:05:29 +02:00
Windel Bouwman
183415e64b Move bytecode into own crate. 2019-06-30 11:01:40 +02:00
Windel Bouwman
ba88716fbe Merge pull request #1049 from RustPython/coolreader18/fromargs-span-errors
Improve errors messages for derive(FromArgs)
2019-06-23 20:59:11 +02:00
Windel Bouwman
eeb7551692 Merge pull request #1039 from RustPython/coolreader18/wasm-_js-module
[WASM] Add a JsValue class
2019-06-23 11:39:01 +02:00
Windel Bouwman
2f75562f14 Merge pull request #1045 from RustPython/coolreader18/pyclassmethod-attr
Add #[pyclassmethod] to #[pyimpl]
2019-06-22 12:40:49 +02:00
coolreader18
8cf38f5b25 Move classmethods on JsValue to be normal methods 2019-06-21 20:20:21 -05:00
coolreader18
61b26878de Add rustpython_vm::__exports module and fix warning 2019-06-21 20:20:19 -05:00
coolreader18
c359c430c2 Add set_file_attr to import_codeobj 2019-06-20 22:43:13 -05:00
coolreader18
aefbae40e4 Revert "Make CodeObject.source_path an Option<String>" 2019-06-20 12:01:20 -05:00
coolreader18
cb832e9aa1 Improve errors messages for derive(FromArgs) 2019-06-20 11:57:59 -05:00
coolreader18
e68b4943ca Add #[pyclassmethod] to #[pyimpl] 2019-06-18 20:37:08 -05:00