I added c++ library to my Rust code and one of the c++ function returns std::pair<char*, char*>.
Could somebody advice what return type should I set in Rust code for the linked function to return the same result ?
This is a C++ type so it can't be used safely/accurately with Rust. You can only use types that conform to the C ABI. For example, you could convert it to a C struct containing the two values, and return that.
That's not 100% true. While there are no portable way to do that most real C++ platforms have stable ABI.
Which means that it's possible to pass C++ types, but that's very non-trivial: you have to study documentation for a particular compiler that you use and also for a particular standard C++ library, too!
One very instructive example: while std::pair<const chat*, const char*> is passed like struct with two fields but std::tuple<const chat*, const char*> is passed differently depending on whether you use libc++ or libstdc++!
That essentially means that you need to do that on per-target basis and keep unittests that verify that everything is passed like you expect it to be passed.