I don't think it took that much time. If you count the time involved in the regex engine though, you might get a bit closer. :-)
In practice, there's no real high level documentation. And there is still a considerable amount of "glue" code in ripgrep's main executable. So the library layer exists at a lower level of abstraction, which may or may not be okay for your use case.