Building a cross-platform application

is it possible to build a cross platform application or library in rust like system programming language using technology like Docker or any other solutions for it

Assuming you're not using any platform-specific functionality/libraries, Rust code will compile on many platforms.

so if i use libraries written in rust i could use in different platform by simple recompiling

Yes, in general you can compile program for many platforms, even if you use Rust libraries.

Of course some Rust libraries may be OS-specific (e.g. there are Rust libraries to talk to Windows registry, and that is going to be Windows-specific no matter what).