These are chat archives for rust-lang/rust

5th
Jun 2018
tandrysyawaludin
@tandrysyawaludin
Jun 05 2018 01:48
@xoac yes SQL query, how to run like "SELECT id FROM table WHERE x = 2"?
Sylwester Rąpała
@xoac
Jun 05 2018 10:43
I don't use it but I think http://diesel.rs/guides/getting-started/ is solution for u
I don't interact with DB so I can't help u more. Just heard about diesel
is there a way to exclude some tests? I want to run cargo test but without test in file integration_tests.rs
Dylan DPC
@Dylan-DPC
Jun 05 2018 11:40
@xoac rust-lang/cargo#1407
Sylwester Rąpała
@xoac
Jun 05 2018 11:43
@Dylan-DPC yes but this run specific test. I want "don't run specific test" and run all other
Dylan DPC
@Dylan-DPC
Jun 05 2018 11:44
yep
Cargo doesn't actually support running specific tests,
that should answer it :)
Sylwester Rąpała
@xoac
Jun 05 2018 11:50
@Dylan-DPC support, you can specify test name and that should work
Dylan DPC
@Dylan-DPC
Jun 05 2018 11:51
?
Dale Wijnand
@dwijnand
Jun 05 2018 11:51
@Dylan-DPC Rust's libtest (Rust's unit and benchmarking tool) supports it, not Cargo, so Cargo just passes the argument to libtest to filter.
But there's no way to specify all-test-but-X
Dylan DPC
@Dylan-DPC
Jun 05 2018 11:52
fair enough but he asked while running cargo that's why told him about that :)
Dale Wijnand
@dwijnand
Jun 05 2018 11:53
yeah it gets confusing when you have wrappers to tell which tools does what :)
Dylan DPC
@Dylan-DPC
Jun 05 2018 12:07
true
Sylwester Rąpała
@xoac
Jun 05 2018 12:07
@dwijnand thx for clarification
Dale Wijnand
@dwijnand
Jun 05 2018 12:07
no worries
trsh
@trsh
Jun 05 2018 16:24
Hey! How do I pass NULL pointer to extern C? std::ptr::null_mut() as *mut ns1__WebAuthenticationCredential this doesn't result in null, when debugging in C :/
trsh
@trsh
Jun 05 2018 16:29
Ups. No. It does
Sylwester Rąpała
@xoac
Jun 05 2018 18:27
and I don't know how to docs function arguments ..
is there any official way how to do it?
trsh
@trsh
Jun 05 2018 18:39
Anybody experienced problems passing t_time to extern C? Like InEffectAsOfTimestamp: seconds as *mut libc::time_t ?
Segm fault