How to link against rust std

Hi, can someone help me to link C program with rust std

this is the code https://gist.github.com/win-t/0001dc36dc357e83735c06577106693a

Thanks

I know cargo can do it, but I want to know how cargo did it

nevermind, cargo build -v give me what I want