I started writing a simple TCP server in Rust and I have a problem.
TCP listener must be bound using "TCPListener::bind()" with an IP and port but I don't know the docker IP at compile time. When I bind to 127.0.0.1 I cannot access the server from outside the container.
Anyone got any idea? Preferably without any third party lib? One idea would be to have a start script that exposes the IP as env variable when the server is run, then bind to that.
It's quite react-like and therefore appeals to me more. I'm still not 100% sure what I should use #wasm for but it's running fast and reliable so that's good I guess! 😃
Critic and ideas or feedback highly appreciated!
I'm super new to #Rust and I'd like to correct my mistakes because I'm assuming my code isn't the best yet.
I've written my first Rust library! 🦀
It's called fakedata_generator and I just released v0.2.0 yesterday!
It's a small lib that can generate random strings for you, e.g. random cat breeds or random dinosaur names or (very limited) domain and e-Mail names.
It's in its early stages but can be used as is!
I'm used to not following rules basically and now compilers just keep yelling at me for not following the language rules. Love it!
Might be time to write a blog post. 🤔
Somehow ended up in tech, currently doing DevOps & cloud stuff on AWS professionally.
bullgit.party is a instance for everyone who is part of bullgit. 🎉