36 个版本

0.1.36 2022 年 6 月 3 日
0.1.35 2022 年 3 月 3 日
0.1.34 2021 年 9 月 12 日
0.1.32 2021 年 6 月 21 日
0.1.2 2020 年 7 月 10 日

#1 in #cio

Download history 9/week @ 2024-03-09 5/week @ 2024-03-16 5/week @ 2024-03-23 21/week @ 2024-03-30 2/week @ 2024-04-06 2/week @ 2024-05-18 19/week @ 2024-06-01 31/week @ 2024-06-08 4/week @ 2024-06-15 9/week @ 2024-06-22

每月 63 次下载
用于 2 crates

Apache-2.0

46KB
974 代码行

cio

cargo-build cargo-clippy cargo-test rustfmt cloud-run

用于执行 CIO 活动的辅助函数和类型。

配置

运行时标志

可以通过环境变量控制特定的运行时行为。默认情况下禁用标志,将变量设置为 true 将启用该功能。

标志 描述
RFD_PDFS_IN_GITHUB 启用将渲染的 RFD PDF 提交回其源仓库
RFD_PDFS_IN_GOOGLE_DRIVE 启用将渲染的 RFD PDF 写入 Google Drive

此应用程序服务器及其周围环境的架构是

arch.png


lib.rs:

  • 与 Airtable API 交互的 Rust 库。
  • 有关更多信息,Airtable API 的文档可在 airtable.com/api 找到。
  • 示例
  • use airtable_api::{Airtable, Record};
  • use serde::{Deserialize, Serialize};
  • async fn get_records() {
  • // Initialize the Airtable client.
    
  • let airtable = Airtable::new_from_env();
    
  • // Get the current records from a table.
    
  • let mut records: Vec<Record<SomeFormat>> = airtable
    
  •     .list_records(
    
  •         "Table Name",
    
  •         "Grid view",
    
  •         vec!["the", "fields", "you", "want", "to", "return"],
    
  •     )
    
  •     .await
    
  •     .unwrap();
    
  • // Iterate over the records.
    
  • for (i, record) in records.clone().iter().enumerate() {
    
  •     println!("{} - {:?}", i, record);
    
  • }
    
  • }
  • #[derive(Debug, Clone, Serialize, Deserialize)]
  • pub struct SomeFormat {
  • pub x: bool,
    
  • }
  • 
    

依赖项

~11–26MB
~371K SLoC