Commit Graph

37 Commits

Author SHA1 Message Date
Ben Lewis
c54b4bb833 Split py_compile_bytecode into py_compile and py_freeze. 2020-09-18 18:59:58 +12:00
Noah
d7bc12114d Get rid of proc-macro-hacky stuff for py_compile_bytecode 2020-08-03 13:20:04 -05:00
Noah
a9058f0a0c Add a separate crate to package the python stdlib source code with 2020-06-24 20:30:22 -05:00
Noah
80f11466b3 Add "incognito" compilation 2020-04-03 12:34:00 -05:00
Jeong YunWon
7d0d313aa5 &str::to_string -> &str::to_owned for variables 2020-02-05 22:55:34 +09:00
Jeong YunWon
1bac582921 &str::to_string -> &str::to_owned for literals 2020-02-05 22:55:33 +09:00
Daniel Alley
e5cac96511 Replace lazy_static! macro with once_cell 2020-01-27 01:05:53 -05:00
coolreader18
44ed27e8e7 Update to newest syn 2020-01-14 23:22:49 -06:00
coolreader18
b29707cda4 Say what file failed to compile in py_compile_bytecode 2020-01-13 19:56:18 -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
c1306726c4 Fix clippy warnings 2019-12-21 18:49:48 +09:00
Windel Bouwman
64ab147f64 Compress bytecode using LZ4 2019-10-07 20:54:22 +02: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
Windel Bouwman
ac765a957b Add a settings struct for storage of different settings which influence the VM. 2019-07-13 12:23:53 +02:00
Windel Bouwman
704b15750e Add optimize flag to ignore assert statements. 2019-07-12 18:41:25 +02:00
Maxim Kurnikov
347d48198e fix remaining clippy warnings 2019-07-07 06:27:07 +03:00
Windel Bouwman
183415e64b Move bytecode into own crate. 2019-06-30 11:01:40 +02: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
b74b65d37e Make CodeObject.source_path an Option<String> 2019-06-16 19:59:04 -05:00
coolreader18
1814977c45 Add doc comments 2019-06-15 20:19:59 -05:00
coolreader18
75c2e4ae9b Remove lazy_static, just store as a CodeObject 2019-06-15 11:31:30 -05:00
coolreader18
241f5190cc Formatting 2019-06-15 00:30:14 -05:00
coolreader18
b5ba62fe94 Add lazy_static argument 2019-06-14 21:17:12 -05:00
coolreader18
48966a76e2 Make py_compile_bytecode!() an expression 2019-06-14 18:20:02 -05:00
coolreader18
4d0eb06724 Default source_path 2019-06-14 12:40:01 -05:00
coolreader18
d2cde9a3bf Use bincode to deserialize into a CodeObject 2019-06-14 12:26:35 -05:00
coolreader18
e592f3d888 Add py_compile_bytecode! macro 2019-06-14 10:42:45 -05:00