Skip to content

Rust based endoflife.date API client

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

afarinetti/endoflife-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust rust-clippy analyze

endoflife-rs

Dynamic TOML Badge GitHub top language

An https://endoflife.date API client written in Rust.

Installation

From git:

cargo add --git https://github.com/afarinetti/endoflife-rs

TODO

Usage

Get All Details

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let cycles = get_all_details("python").await?;
    for cycle in cycles {
        println!("{cycle:#?}");
        break;
    }

    Ok(())
}
Output
    Cycle {
      cycle: "3.13",
      release_date: 2024-10-07,
      eol: Date(
        2029-10-31,
      ),
      latest: "3.13.1",
      link: None,
      lts: Bool(
        false,
      ),
      support: Date(
        2026-10-01,
      ),
      discontinued: None,
    }
    Cycle {
      cycle: "3.12",
      release_date: 2023-10-02,
      eol: Date(
        2028-10-31,
      ),
      latest: "3.12.8",
      link: None,
      lts: Bool(
        false,
      ),
      support: Date(
        2025-04-02,
      ),
      discontinued: None,
    }
// << snip >>

Cycle {
  cycle: "3.0",
  release_date: 2008-12-03,
  eol: Date(
    2009-06-27,
  ),
  latest: "3.0.1",
  link: None,
  lts: Bool(
    false,
  ),
  support: Bool(
    false,
  ),
  discontinued: None,
}
Cycle {
  cycle: "2.6",
  release_date: 2008-10-01,
  eol: Date(
    2013-10-29,
  ),
  latest: "2.6.9",
  link: None,
  lts: Bool(
    false,
  ),
  support: Bool(
    false,
  ),
  discontinued: None,
}

Get Single Cycle Details

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let cycle = get_single_cycle_details("python", "3.12").await?;
    println!("{cycle:#?}");

    Ok(())
}
Output
    Cycle {
      cycle: "3.12",
      release_date: 2023-10-02,
      eol: Date(
        2028-10-31,
      ),
      latest: "3.12.8",
      link: None,
      lts: Bool(
        false,
      ),
      support: Date(
        2025-04-02,
      ),
      discontinued: None,
    }
  

Get All Products

#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
    let products = get_all_products().await?;
    println!("{products:#?}");

    Ok(())
}
Output
    [
      "akeneo-pim",
      "alibaba-dragonwell",
      "almalinux",
      "alpine",
      "amazon-cdk",
      "amazon-corretto",
  // << snip >>

  "xcp-ng",
  "yarn",
  "yocto",
  "zabbix",
  "zentyal",
  "zerto",
  "zookeeper",
]

License

About

Rust based endoflife.date API client

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages