aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/rust.js
Commit message (Collapse)AuthorAge
* Rust library support (#3754)gh-3295Patrick Quist2022-06-10
|
* The Grand Reformat (#3643)gh-2830Matt Godbolt2022-05-09
| | | | | | | | | | * The Grand Reformat - everything made prettier...literally - some tweaks to include a few more files, including documentation - minor changes to format style - some tiny `// prettier-ignore` changes to keep a few things the way we like them - a couple of super minor tweaks to embedded document types to ensure they format correctly
* rust: HIR dump and small refactor with macro expansion (#3147)gh-1338Marc Poulhiès2021-12-05
| | | | | | | | | | | | | Small refactoring for handling -Zunpretty calls: - reuse options from main compiler invocation instead of crafting new ones. - factor out common part. Now also handles HIR output in a dedicated pane. Still a lot of copy/pasting from the macro expansion. fixes #2567 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Fix and refactor rustc-cg-gcc GCC dump (#3128)gh-1302Marc Poulhiès2021-11-22
| | | | | | | | | | | | | Conflicting changes in #3109 and #3064 left the GCC dump of rustc broken. Reapplied the changes and refactored how the -fdump-foo-pass= option is crafted. Instead of using stdout, use an explicit file. Beware that this won't work with older GCC version. Regular GCC is still using the 'dump all files' instead of the targeted option, so it's not impacted by this limitation. Only rustc-cg-gcc is currently using this mecanism and it's using a recent libgccjit. Really fixes #2868 Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
* Honour rustc flags when emitting MIR and emit both assembly and MIR in the ↵gh-1284Marc Poulhiès2021-11-21
| | | | | | | | | | | | | | | | | | | | same execution (#3116) * Honor compiler flags in rustc MIR output view * Refactor rustc/MIR execution handling Apply the same receipe as for GNAT and GCC for minimizing the number of executions for getting extra outputs (here MIR). After discussions in #3107, the way the output files are created is also changed to use the syntax `--emit KIND=PATH` (see https://doc.bccnsoft.com/docs/rust-1.36.0-docs-html/rustc/command-line-arguments.html) Signed-off-by: Marc Poulhiès <dkm@kataplop.net> * fixup! Refactor rustc/MIR execution handling Co-authored-by: Nico Lehmann <nico.lehmannm@gmail.com>
* Add rustc Macro Expansion view (#2932)Mats Larsen2021-09-27
| | | Adds a new pane for producing the macro expansion of Rust code compiled with rustc.
* Add rustc MIR output view (#2795)Mats Larsen2021-07-24
| | | | * Add Rustc MIR representation view * Enable MIR view for rust-cg-gcc
* Initial sketch for how we could parse Rust output (#2761)Rubén Rincón Blanco2021-07-06
| | | | | | | | | * Initial sketch for how we could parse Rust output It has many issues, which I need to ask about, but ey, it works! * Fix spacing * Add tests for the new Rust output parsing
* Reassign copyright to Compiler Explorer Authors (#2233)Matt Godbolt2020-09-26
|
* Use ES6 Modules (#2132)Austin Morton2020-09-26
|
* Eliminate all dynamic require statements (#2230)Austin Morton2020-09-25
|
* Add new eslint rules (#2121)Rubén Rincón Blanco2020-08-04
| | | | | | | | | | | | | | | | The largest changes here are: - enforcing single quotes for strings - enforcing trailing commas where possible In addition to those we have enabled several eslint plugins: - plugin:requirejs/recommended, to enforce some conventions in require statements - plugin:node/recommended, to enforce correct usage of various node.js APIs - plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules This PR attempts to not change code behavior when possible. In cases where fixing existing code would change semantics, a linting exclusion has been placed in the code base to silence the error. You can find these by searching for `eslint-disable-next-line`. Co-authored-by: Austin Morton <austinpmorton@gmail.com>
* Support binary in rust.Matt Godbolt2020-05-28
| | | | Closes #509
* fix #1552Partouf2019-08-25
|
* add custom argument parser for rustPartouf2019-08-08
|
* Add LLVM IR view for RustAndreas Jonson2019-05-20
| | | | closes #497
* Merge remote-tracking branch 'matt/master' into compilerargsPartouf2019-01-10
|\
| * Enable cfg for x86 LLVM based compilers and gcc.Kārlis Seņko2019-01-09
| |
* | change argument parser for some compilersPartouf2019-01-08
|/
* Drop underscore-node in favour of underscore.jsRabsRincon2018-06-15
| | | | | | | | | After some suprises about how outdated the node version was compared to the main project, it became clear we needed to do something. @jaredwy suggested using the main project as there's now nothing stopping us from using it after the switch to webpack. cc @mattgodbolDrop underscore-node in favour of underscore.js
* Fix copyright dates and normalize textRabsRincon2018-02-27
|
* compiler handler calls initialise()Partouf2018-01-28
|
* remove return initialise, no need for unittestmodePartouf2018-01-28
|
* Format codeRabsRincon2018-01-18
|
* ES6fy compilers inheritanceRabsRincon2018-01-18
|
* New year, new dateRabsRincon2018-01-01
|
* Remove explicit langid, as it's part of the compiler config alreadyMatt Godbolt2017-12-22
|
* Change enough stuff as to get it runningRabsRincon2017-12-02
| | | | | Not saying it works, but if you hack few more things, you can start to use it. Commiting just in case
* Allow options for filters to look at useroptions this allows us to ↵jaredwy2017-09-01
| | | | add/remove options per compiler such as for rust where we need to not add the --emit argument if the user has passed us one
* Another year, another copyright updateMatt Godbolt2017-01-02
|
* Use -C debuglevel=1 to maybe mitigate #79Matt Godbolt2016-12-23
|
* Intel fixes for rustMatt Godbolt2016-12-19
|
* More fixesMatt Godbolt2016-12-19
|
* More rust fixes; should address #139Matt Godbolt2016-12-19
|
* Fix rust (maybe)Matt Godbolt2016-12-19
|
* Refactor individual compilation types into their own filesMatt Godbolt2016-12-19