Install new pub/priv/export rules as defaults, old rules accessible under #[legacy_exports];
This commit is contained in:
parent
60443d4888
commit
dffe188991
277 changed files with 1174 additions and 120 deletions
|
@ -118,6 +118,7 @@ fn get_addr(node: &str, iotask: iotask)
|
|||
}
|
||||
|
||||
mod v4 {
|
||||
#[legacy_exports];
|
||||
/**
|
||||
* Convert a str to `ip_addr`
|
||||
*
|
||||
|
@ -204,6 +205,7 @@ mod v4 {
|
|||
}
|
||||
}
|
||||
mod v6 {
|
||||
#[legacy_exports];
|
||||
/**
|
||||
* Convert a str to `ip_addr`
|
||||
*
|
||||
|
@ -310,6 +312,7 @@ extern fn get_addr_cb(handle: *uv_getaddrinfo_t, status: libc::c_int,
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
#[legacy_exports];
|
||||
#[test]
|
||||
fn test_ip_ipv4_parse_and_format_ip() {
|
||||
let localhost_str = ~"127.0.0.1";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue