aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-24 00:06:59 +0000
committerFuwn <[email protected]>2022-03-24 00:06:59 +0000
commit64d31d0c0226141db72b5907ee21792dd3e92dfa (patch)
treed06942db46df80474b77de6bfc993cd99d6af1bf /src/lib.rs
parentfeat(api): /me route (diff)
downloadapi-worker-64d31d0c0226141db72b5907ee21792dd3e92dfa.tar.xz
api-worker-64d31d0c0226141db72b5907ee21792dd3e92dfa.zip
feat: cache github api
This commit allows The Senpy Club API to cache GitHub's API response, refreshing the cache every fifty accesses. This commit also gets rid of a few dependencies which were replaced by their standard library counterparts.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 2287e89..507c927 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -16,6 +16,7 @@
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
+#![feature(once_cell)]
#![deny(
warnings,
nonstandard_style,