36 releases

0.1.36 Jun 3, 2022
0.1.35 Mar 3, 2022
0.1.34 Sep 12, 2021
0.1.32 Jun 21, 2021
0.1.2 Jul 10, 2020

#1999 in Web programming

Download history 25/week @ 2024-06-10 9/week @ 2024-06-24 21/week @ 2024-07-22 291/week @ 2024-07-29 102/week @ 2024-08-05 118/week @ 2024-08-12 41/week @ 2024-08-19 44/week @ 2024-08-26 48/week @ 2024-09-02 14/week @ 2024-09-09 57/week @ 2024-09-23

125 downloads per month
Used in 2 crates

Apache-2.0

46KB
974 lines

cio

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

Helper functions and types for doing the activities of a CIO.

Configuration

Runtime Flags

Specific runtime behaviors can be controlled via environment variables. Flags are disabled by default and setting the variable to true will enable the feature.

Flag Description
RFD_PDFS_IN_GITHUB Enables committing of rendered RFD PDFs back to their source repo
RFD_PDFS_IN_GOOGLE_DRIVE Enables writing of rendered RFD PDFs to Google Drive

The architecture for this application server and all it's surroundings is:

arch.png


lib.rs:

  • A rust library for interacting with the Airtable API.
  • For more information, the Airtable API is documented at airtable.com/api.
  • Example:
  • 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,
    
  • }
  • 
    

Dependencies

~11–24MB
~356K SLoC