aboutsummaryrefslogtreecommitdiff
path: root/xtask/src/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* todo(codegen): added todo to change the reference to removed ra_tools crateVeetaha2020-01-161-0/+1
|
* Use correct rustfmt for codegenAleksey Kladov2020-01-101-10/+27
| | | | closes #1569
* Share cache cleaning logic between OSesAleksey Kladov2020-01-071-1/+39
|
* CleanupAleksey Kladov2020-01-071-4/+4
|
* Move cmd to a separate dirAleksey Kladov2020-01-071-53/+5
|
* Refactor xtasksAleksey Kladov2020-01-071-37/+4
|
* Switch ast declaration from ron to a macroAleksey Kladov2020-01-031-0/+1
|
* Make reformat hook actually reformat filesAleksey Kladov2019-12-181-0/+1
|
* Use rustup toolchain instead of rustup installEdwin Cheng2019-12-081-2/+2
|
* Don't create a separate bin for format hookAleksey Kladov2019-11-181-12/+26
|
* Use anyhow::Result in xtask, add contextsPascal Hertleif2019-11-131-9/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This builds on #2231 but was actually done before that. You see, the cause for #2231 was that I got this error message: Error: Error { kind: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) } Just switching to `anyhow::Result` got me stack traces (when setting `RUST_LIB_BACKTRACE=1`) that at least showed stack backtrace: 0: std::backtrace::Backtrace::create 1: std::backtrace::Backtrace::capture 2: anyhow::error::<impl core::convert::From<E> for anyhow::Error>::from 3: xtask::install_server 4: xtask::install 5: xtask::main 6: std::rt::lang_start::{{closure}} 7: std::panicking::try::do_call 8: __rust_maybe_catch_panic 9: std::rt::lang_start_internal 10: std::rt::lang_start 11: main With the added contexts (not at all exhaustive), the error became Error: install server Caused by: 0: build AutoCfg with target directory 1: No such file or directory (os error 2) Since anyhow is such a small thing (no new transitive dependencies!), and in general gives you `Result<T, Box<dyn Error>>` on steroids, I think this a nice small change. The only slightly annoying thing was to replace all the `Err(format!(…))?` calls (haven't even looked at whether we can make it support wrapping strings though), but the `bail!` macro is shorter anyway :)
* Use run-time project path in xtaskLaurențiu Nicola2019-11-011-1/+8
|
* xtask: move codegen to a moduleAleksey Kladov2019-10-231-172/+3
|
* rename tools -> xtaskAleksey Kladov2019-10-171-1/+1
|
* WIP: move to xtasksAleksey Kladov2019-10-171-0/+332