prisma-client-rust-core 0.2.1

A prisma client for Rust
Documentation
1
2
3
4
5
6
7
use std::net::TcpListener;

pub fn get_port() -> String {
    let listener = TcpListener::bind("localhost:0").unwrap();

    listener.local_addr().unwrap().port().to_string()
}