feat: add initial implementation of Cargo.toml, Cargo.lock, and lib.rs with defang_i_paddr function
This commit is contained in:
parent
6380358163
commit
45adae9f25
7
1108_defanging_an_ip_address/Cargo.lock
generated
Normal file
7
1108_defanging_an_ip_address/Cargo.lock
generated
Normal file
@ -0,0 +1,7 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "defanging_an_ip_address"
|
||||
version = "0.1.0"
|
6
1108_defanging_an_ip_address/Cargo.toml
Normal file
6
1108_defanging_an_ip_address/Cargo.toml
Normal file
@ -0,0 +1,6 @@
|
||||
[package]
|
||||
name = "defanging_an_ip_address"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
7
1108_defanging_an_ip_address/src/lib.rs
Normal file
7
1108_defanging_an_ip_address/src/lib.rs
Normal file
@ -0,0 +1,7 @@
|
||||
pub struct Solution;
|
||||
|
||||
impl Solution {
|
||||
pub fn defang_i_paddr(address: String) -> String {
|
||||
address.replace(".", "[.]")
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user