core: rt/core: impl os::env() in rust ref #4812
rt/core: port os::list_dir to rust ref #4812