yfinance-rs 0.1.3

Ergonomic Rust client for Yahoo Finance, supporting historical prices, real-time streaming, options, fundamentals, and more.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io::Result;

fn main() -> Result<()> {
    println!("cargo:rerun-if-changed=src/stream/yaticker.proto");

    prost_build::compile_protos(&["src/stream/yaticker.proto"], &["src/stream/"]).map_err(|e| {
        // This will ensure the error is printed clearly during the build
        eprintln!("Failed to compile protos: {e}");
        e
    })?;

    Ok(())
}