mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-24 09:40:52 +00:00
Good enough so that if you type `net server` and you hit the IP address of the device, it'll respond with something like Hello from Precursor! I have been up for 86087 ms. There's still all kinds of bugs, I'm sure. But ... I'm also not sure /why/ you would want a web server on Precursor. This is more just to make sure that the TCP stack isn't totally broken. The "web server" as it may be is quite broken and doesn't parse any headers and probably sends a bogus amount of data because I can't figure out if the content length includes some new lines or not. But really, this just isn't in scope. Works with Chrome, Firefox shows the status page and then says "connection reset" and hides all the information. Whatever, browser compatibility is well beyond my pay grade!
49 lines
1.8 KiB
TOML
49 lines
1.8 KiB
TOML
[package]
|
|
name = "net"
|
|
version = "0.1.0"
|
|
authors = ["bunnie <bunnie@kosagi.com>"]
|
|
edition = "2018"
|
|
description = "Network middleware"
|
|
|
|
# Dependency policy: fully specify dependencies to the minor version number
|
|
[dependencies]
|
|
xous = { path = "../../xous-rs" }
|
|
xous-ipc = {path="../../xous-ipc"}
|
|
log-server = { path = "../log-server" }
|
|
ticktimer-server = { path = "../ticktimer-server" }
|
|
xous-names = { path = "../xous-names" }
|
|
log = "0.4.14"
|
|
num-derive = {version = "0.3.3", default-features = false}
|
|
num-traits = {version = "0.2.14", default-features = false}
|
|
susres = {path = "../susres"}
|
|
#rkyv = "0.7.18"
|
|
rkyv = {version = "0.4.3", features = ["const_generics"], default-features = false}
|
|
llio = {path = "../llio"}
|
|
com = {path = "../com"}
|
|
byteorder = { version = "1.0", default-features = false }
|
|
trng = {path = "../trng"}
|
|
com_rs-ref = {path = "../../imports/com_rs-ref"}
|
|
modals = {path = "../modals"}
|
|
locales = {path = "../../locales"}
|
|
|
|
# for automatic SSID management and AP list storage
|
|
pddb = {path = "../pddb"}
|
|
|
|
[dependencies.smoltcp]
|
|
# ugh. we startd pulling in smoltcp as they were just fixing a bunch of bugs and getting ready for a 0.8.0 release.
|
|
# this is the last commit that doesn't break things for Xous. They pulled in some random crate that isn't compatible
|
|
# with Xous in the commit after this -- we need to look into this and maybe send a PR so we can try to work with
|
|
# the latest smoltcp. But later...let's just get things even working first with what we have.
|
|
git = "https://github.com/smoltcp-rs/smoltcp.git"
|
|
rev = "35e833e33dfd3e4efc3eb7d5de06bec17c54b011"
|
|
#path = "../../../smoltcp"
|
|
#features = ["verbose"]
|
|
#version = "0.7.5"
|
|
#features = ["proto-ipv4"]
|
|
|
|
|
|
[target.'cfg(not(any(windows,unix)))'.dependencies]
|
|
utralib = { path = "../../utralib"}
|
|
|
|
[features]
|
|
default = []
|