rename userspace feature to user

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/23/head
Dave Tucker 3 years ago
parent 8be4317287
commit e18bfe3e0d

@ -5,7 +5,7 @@ edition = "2018"
[features] [features]
default = [] default = []
userspace = [ "aya" ] user = [ "aya" ]
[dependencies] [dependencies]
aya = { git = "https://github.com/aya-rs/aya", branch="main", optional=true } aya = { git = "https://github.com/aya-rs/aya", branch="main", optional=true }

@ -10,6 +10,6 @@ pub struct SockKey {
pub local_port: u32, pub local_port: u32,
} }
#[cfg(feature = "userspace")] #[cfg(feature = "user")]
unsafe impl aya::Pod for SockKey {} unsafe impl aya::Pod for SockKey {}
{%- endif -%} {%- endif -%}

@ -6,7 +6,7 @@ publish = false
[dependencies] [dependencies]
aya = { git = "https://github.com/aya-rs/aya", branch="main" } aya = { git = "https://github.com/aya-rs/aya", branch="main" }
{{project-name}}-common = { path = "../{{project-name}}-common", features=["userspace"] } {{project-name}}-common = { path = "../{{project-name}}-common", features=["user"] }
anyhow = "1.0.42" anyhow = "1.0.42"
ctrlc = "3.2" ctrlc = "3.2"
{% if program_type == "uprobe" %}libc = "0.2.102"{% endif %} {% if program_type == "uprobe" %}libc = "0.2.102"{% endif %}

Loading…
Cancel
Save