This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #![cfg_attr(feature = "cargo-clippy", allow(redundant_closure))] | |
| use std::io; | |
| use liquid; | |
| use ignore; | |
| use serde_yaml; | |
| use std::convert::From; | |
| error_chain! { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[test] | |
| fn convert_front_ok() { | |
| let res = JkDocument::convert_front(Some(CORRECT_JK_FRONT.to_owned())); | |
| match res { | |
| Err(e) => println!("error convert: {:#?}", e), | |
| Ok(mut converted) => { | |
| // need to remove the custom part, the fields order is not stable | |
| let custom_offset = converted.find("custom").unwrap_or(converted.len()); | |
| let all_but_custom: String = converted.drain(..custom_offset).collect(); | |
| assert_eq!(all_but_custom, CORRECT_CB_FRONT); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I:\Dev\cobalt.rs (#241) | |
| λ cargo build --features="syntax-highlight" --verbose | |
| Fresh typeable v0.1.2 | |
| Fresh unicode-segmentation v1.2.0 | |
| Fresh linked-hash-map v0.5.0 | |
| Fresh cc v1.0.3 | |
| Fresh either v1.4.0 | |
| Fresh getopts v0.2.15 | |
| Fresh glob v0.2.11 | |
| Fresh winapi v0.2.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I:\Dev\b40ea57017008ce3aee52ce1fcdfe776 (master) | |
| λ cargo run --verbose | |
| Compiling libc v0.2.34 | |
| Compiling bitflags v0.7.0 | |
| Compiling pkg-config v0.3.9 | |
| Compiling lazy_static v0.2.11 | |
| Running `rustc --crate-name libc C:\Users\Geob\.cargo\registry\sr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extern crate assert_cli; | |
| #[macro_use] | |
| extern crate lazy_static; | |
| extern crate tempdir; | |
| use std::env; | |
| use std::str; | |
| use std::path::{Path, PathBuf}; | |
| use tempdir::TempDir; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"message":"unresolved import `rustc::ty::layout::LayoutOf`","code":{"code":"E0432","explanation":"\nAn import was unresolved.\n\nErroneous code example:\n\n```compile_fail,E0432\nuse something::Foo; // error: unresolved import `something::Foo`.\n```\n\nPaths in `use` statements are relative to the crate root. To import items\nrelative to the current and parent modules, use the `self::` and `super::`\nprefixes, respectively. Also verify that you didn't misspell the import\nname and that the import exists in the module from where you tried to\nimport it. Example:\n\n```\nuse self::something::Foo; // ok!\n\nmod something {\n pub struct Foo;\n}\n# fn main() {}\n```\n\nOr, if you tried to use a module from an external crate, you may have missed\nthe `extern crate` declaration (which is usually placed in the crate root):\n\n```\nextern crate core; // Required to use the `core` crate\n\nuse core::any;\n# fn main() {}\n```\n"},"level":"error","spans":[{"file_name":"C:\\Users\\Geob\\.cargo\\registry\\src\\github.c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEBUG 2018-03-13T09:39:28Z: rls::server: Language Server starting up. Version: 0.126.0-nightly (d4f0b29 2018-02-28) | |
| DEBUG 2018-03-13T09:40:23Z: rls::build::cargo: Error running compile_with_exec: ErrorMessage { msg: "build failed" } | |
| INFO 2018-03-13T09:40:23Z: rls_analysis::raw: Considering Listing { kind: File(SystemTime { intervals: 131648254560000000 }), name: "libcore-6819054bfe8f72ed.json" } | |
| INFO 2018-03-13T09:40:23Z: rls_analysis::raw: reading "C:\\Users\\Geob\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\analysis\\libcore-6819054bfe8f72ed.json" 0.151590669s | |
| INFO 2018-03-13T09:40:23Z: rls_analysis::raw: Considering Listing { kind: File(SystemTime { intervals: 131648254690000000 }), name: "liblibc-e00373028739c601.json" } | |
| INFO 2018-03-13T09:40:23Z: rls_analysis::raw: Considering Listing { kind: File(SystemTime { intervals: 131648254690000000 }), name: "libprofiler_builtins-f6aabc9e9855f087.json" } | |
| INFO 2018-03-13T09:40:23Z: rls_analysis::raw: reading "C:\ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DEBUG 2018-03-15T15:28:02Z: rls::server: Language Server starting up. Version: 0.126.0-nightly (b6c5244 2018-03-14) | |
| INFO 2018-03-15T15:28:25Z: rls_analysis: find_all_refs: 0.000002565s | |
| DEBUG 2018-03-15T15:29:22Z: rls::build::cargo: Error running compile_with_exec: ErrorMessage { msg: "build failed" } | |
| INFO 2018-03-15T15:29:23Z: rls_analysis::raw: Considering Listing { kind: File(SystemTime { intervals: 131655378440000000 }), name: "libcore-598a87b19754feda.json" } | |
| INFO 2018-03-15T15:29:23Z: rls_analysis::raw: reading "C:\\Users\\GQ185008\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-pc-windows-msvc\\analysis\\libcore-598a87b19754feda.json" 0.155583379s | |
| INFO 2018-03-15T15:29:23Z: rls_analysis::raw: Considering Listing { kind: File(SystemTime { intervals: 131655378540000000 }), name: "libprofiler_builtins-617bd059b414416e.json" } | |
| INFO 2018-03-15T15:29:23Z: rls_analysis::raw: reading "C:\\Users\\GQ185008\\.rustup\\toolchains\\nightly-x86_64-pc-windows-msvc\\lib\\rustlib\\x86_64-p |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Based on the "trust" template v0.1.1 | |
| # https://github.com/japaric/trust/tree/v0.1.1 | |
| os: Visual Studio 2017 | |
| environment: | |
| global: | |
| CRATE_NAME: rsass | |
| #APPVEYOR_CACHE_SKIP_RESTORE: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pub struct UsbContext { | |
| api: hidapi::HidApi, | |
| } | |
| impl UsbContext { | |
| pub fn new() -> UsbContext { | |
| UsbContext { | |
| api: hidapi::HidApi::new().unwrap() | |
| } | |
| } |