wp_query_rs 0.4.1

A rust implementation of the classic WP_Query utility to access WordPress posts outside of a WordPress environment.
Documentation
1
2
3
4
5
6
7
8
use wp_query_rs::*;

#[test]
fn can_get_user_by_id() {
    let user = WpUser::get_user_by_id(1).unwrap().unwrap();

    assert_eq!(user.id, 1);
}