Because core is agnostic to Fuchsia, you can build and run using cargo, which can save a bit of development time. Follow the steps below to get a working local set up:
//src/connectivity/network/netstack3/core.fx build netstack3-core.fx gen-cargo .:netstack3-core. That will create a new Cargo.toml file in that directory (which you can also use to import into your IDE if you use one!).Note: the cargo generation is only a symbolic link to the fuchsia build output directory. You should only need to run this once. You must have an
fx setline that includes netstack3 for the cargo file to be generated.
~/.cargo/config file (or create it if you don't have one),x86_64-unknown-linux-gnu:[target.x86_64-unknown-linux-gnu] rustflags = ["-L", "absolute_path_to_fuchsia_directory/out/default/host_x64/obj/third_party/boringssl"]
cargo check from the core directory to check that everything is correct.cargo correctly after running jiri update, clean up all Cargo.lock files in //src and //garnet and try again.