These are chat archives for rust-lang/rust

31st
Mar 2018
bodqhrohro
@bodqhrohro
Mar 31 2018 13:01
Hello, does cargo have an analog of make install?
Ricky
@deg4uss3r
Mar 31 2018 13:11
@binary132 there’s ‘Cargo install <binary name>’ is that what you’re looking for?
bodqhrohro
@bodqhrohro
Mar 31 2018 13:23
@deg4uss3r looks like yes, I thought it can install only from external hosts, but it works also for the current project, thanks
Andy Grove
@andygrove
Mar 31 2018 16:21
can anyone tell me how to get a slice from a *const u8 ?
pub struct Buffer<T> { data: *const T, len: i32 }
and I'm trying to implement fn slice(&self, start: usize, end: usize) -> &[T]
Andy Grove
@andygrove
Mar 31 2018 16:32
nm, I just found slice::from_raw_parts
Ayushya Chitransh
@AyushyaChitransh
Mar 31 2018 21:38
I am having a tough time configuring the db and all.