Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
update: rename to external-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
digikata committed Jan 10, 2024
1 parent 616e215 commit 470ba90
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[workspace]
members = [
"crates/ext-lib",
"crates/external-lib",
"crates/connector-main"
]
resolver = "2"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ data to an external data store.
This repository is organized with a library crate "ext-lib" and a connector
binary crate "connector-main":

* [ext-lib](crates/ext-lib) is a simple standalone example integration with the [USGS Earthquake
feed](https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php).
* [external-lib](crates/external-lib) is a simple standalone example integration with the [USGS Earthquake
feed](https://earthquake.usgs.gov/earthquakes/feed/v1.0/geojson.php). A separate crate is not required by the Fluvio connector interface, but the arrangement is often convenient for testing and development.

* [connector-main](crates/connector-main) is the glue logic that joins the simple crate with the Fluvio connector
interface.

## Build and Test

The ext-lib can be built and tested using standard cargo commands.
The external-lib can be built and tested using standard cargo commands.

At the top cargo workspace level:
```
Expand All @@ -38,7 +38,7 @@ cargo test -p ext-lib # this will build and test the crate
```
Or in the crate directory:
```
cd crates/ext-lib
cd crates/external-lib
cargo build
cargo test
```
Expand Down Expand Up @@ -106,7 +106,7 @@ For simpler uses, you can used existing parameterized connectors from the hub.
For example with many http apis, you can altenatively use the Infinyon generic
http-source connector by filling in a connector configuration file without
needing to develop a custom connector. In the case of the USGS feed, an alternate
way to process the data would be to use the generic http source connector with
way to process the data would be to use the generic http source connector with
smartmodules to process the geojson data into a record stream.

See our docs at:
Expand All @@ -117,7 +117,7 @@ For services which may provide webhook integration, you can also use webook
APIs with the Infinyon cloud webhook gateway at:
* https://www.infinyon.com/docs/cli/webhook/

See a list of available connectors at
See a list of available connectors at
* https://fluvio.io/connectors/cdk/github-examples/


Expand Down
2 changes: 1 addition & 1 deletion crates/connector-main/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ edition = "2021"

[dependencies]
anyhow = "1.0.77"
ext-lib = { path = "../ext-lib"}
external-lib = { path = "../external-lib"}

async-std = { workspace = true }
fluvio = { git = "https://github.com/infinyon/fluvio", rev = "v0.11.2" }
Expand Down
2 changes: 1 addition & 1 deletion crates/connector-main/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use fluvio_connector_common::{
use std::thread::sleep;
use tracing::info;

use ext_lib::UsgsFeatureCollectionExample;
use external_lib::UsgsFeatureCollectionExample;

#[connector(config)]
#[derive(Debug)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "ext-lib"
name = "external-lib"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.

0 comments on commit 470ba90

Please sign in to comment.